/*
 * This file was automatically generated by EvoSuite
 * Fri Jun 08 18:41:36 GMT 2018
 */

package uk.ac.sanger.artemis.components.alignment;

import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.EvoAssertions.*;
import htsjdk.samtools.SAMRecord;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.evosuite.runtime.ViolatedAssumptionAnswer;
import org.junit.runner.RunWith;
import uk.ac.sanger.artemis.components.alignment.SAMRecordMapQPredicate;

@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = false, useJEE = true) 
public class SAMRecordMapQPredicate_ESTest extends SAMRecordMapQPredicate_ESTest_scaffolding {

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      SAMRecordMapQPredicate sAMRecordMapQPredicate0 = new SAMRecordMapQPredicate((-1));
      SAMRecord sAMRecord0 = mock(SAMRecord.class, new ViolatedAssumptionAnswer());
      doReturn(0).when(sAMRecord0).getMappingQuality();
      sAMRecordMapQPredicate0.cutOff = 0;
      sAMRecordMapQPredicate0.cutOff = 255;
      boolean boolean0 = sAMRecordMapQPredicate0.testPredicate(sAMRecord0);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      SAMRecordMapQPredicate sAMRecordMapQPredicate0 = new SAMRecordMapQPredicate(1254);
      // Undeclared exception!
      try { 
        sAMRecordMapQPredicate0.testPredicate((SAMRecord) null);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.components.alignment.SAMRecordMapQPredicate", e);
      }
  }

  @Test(timeout = 4000)
  public void test2()  throws Throwable  {
      SAMRecordMapQPredicate sAMRecordMapQPredicate0 = new SAMRecordMapQPredicate((-1));
      SAMRecord sAMRecord0 = mock(SAMRecord.class, new ViolatedAssumptionAnswer());
      doReturn(0).when(sAMRecord0).getMappingQuality();
      boolean boolean0 = sAMRecordMapQPredicate0.testPredicate(sAMRecord0);
      assertTrue(boolean0);
  }

  @Test(timeout = 4000)
  public void test3()  throws Throwable  {
      SAMRecordMapQPredicate sAMRecordMapQPredicate0 = new SAMRecordMapQPredicate((-1));
      SAMRecord sAMRecord0 = mock(SAMRecord.class, new ViolatedAssumptionAnswer());
      doReturn(0).when(sAMRecord0).getMappingQuality();
      sAMRecordMapQPredicate0.cutOff = 0;
      boolean boolean0 = sAMRecordMapQPredicate0.testPredicate(sAMRecord0);
      assertFalse(boolean0);
  }
}
