/*
 * This file was automatically generated by EvoSuite
 * Wed Sep 19 22:20:54 GMT 2018
 */

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

import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.EvoAssertions.*;
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.Feature;
import uk.ac.sanger.artemis.components.variant.FeatureContigPredicate;

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

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      FeatureContigPredicate featureContigPredicate0 = new FeatureContigPredicate(" B5[4b HZ*.s-`ysZ!9");
      Feature feature0 = mock(Feature.class, new ViolatedAssumptionAnswer());
      doReturn((String) null).when(feature0).getIDString();
      // Undeclared exception!
      try { 
        featureContigPredicate0.testPredicate(feature0);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.components.variant.FeatureContigPredicate", e);
      }
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      FeatureContigPredicate featureContigPredicate0 = new FeatureContigPredicate("uk.ac.sanger.artemis.components.variant.FeatureContigPredicate");
      Feature feature0 = mock(Feature.class, new ViolatedAssumptionAnswer());
      doReturn("uk.ac.sanger.artemis.components.variant.FeatureContigPredicate !!Ia3~?~d2\"Ya]i1)\"").when(feature0).getIDString();
      boolean boolean0 = featureContigPredicate0.testPredicate(feature0);
      assertTrue(boolean0);
  }

  @Test(timeout = 4000)
  public void test2()  throws Throwable  {
      FeatureContigPredicate featureContigPredicate0 = new FeatureContigPredicate("eep%Bhsedra..'");
      Feature feature0 = mock(Feature.class, new ViolatedAssumptionAnswer());
      doReturn("eep%Bhsedra..'").when(feature0).getIDString();
      boolean boolean0 = featureContigPredicate0.testPredicate(feature0);
      assertTrue(boolean0);
  }

  @Test(timeout = 4000)
  public void test3()  throws Throwable  {
      Feature feature0 = mock(Feature.class, new ViolatedAssumptionAnswer());
      doReturn("!!Ia3~,?~d2\"Ya]i1)\" ").when(feature0).getIDString();
      FeatureContigPredicate featureContigPredicate0 = new FeatureContigPredicate("");
      boolean boolean0 = featureContigPredicate0.testPredicate(feature0);
      assertFalse(boolean0);
  }
}
