/*
 * This file was automatically generated by EvoSuite
 * Fri Jun 08 16:51:24 GMT 2018
 */

package uk.ac.sanger.artemis;

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.FeatureFromVectorPredicate;
import uk.ac.sanger.artemis.FeatureVector;

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

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      FeatureVector featureVector0 = mock(FeatureVector.class, new ViolatedAssumptionAnswer());
      doReturn(true).when(featureVector0).contains(any(uk.ac.sanger.artemis.Feature.class));
      FeatureFromVectorPredicate featureFromVectorPredicate0 = new FeatureFromVectorPredicate(featureVector0);
      boolean boolean0 = featureFromVectorPredicate0.testPredicate((Feature) null);
      assertTrue(boolean0);
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      FeatureVector featureVector0 = mock(FeatureVector.class, new ViolatedAssumptionAnswer());
      doReturn(false).when(featureVector0).contains(any(uk.ac.sanger.artemis.Feature.class));
      FeatureFromVectorPredicate featureFromVectorPredicate0 = new FeatureFromVectorPredicate(featureVector0);
      Feature feature0 = mock(Feature.class, new ViolatedAssumptionAnswer());
      boolean boolean0 = featureFromVectorPredicate0.testPredicate(feature0);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test2()  throws Throwable  {
      FeatureFromVectorPredicate featureFromVectorPredicate0 = new FeatureFromVectorPredicate((FeatureVector) null);
      Feature feature0 = mock(Feature.class, new ViolatedAssumptionAnswer());
      // Undeclared exception!
      try { 
        featureFromVectorPredicate0.testPredicate(feature0);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.FeatureFromVectorPredicate", e);
      }
  }
}
