/*
 * This file was automatically generated by EvoSuite
 * Thu Sep 20 13:39:34 GMT 2018
 */

package uk.ac.sanger.artemis.components;

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.Entry;
import uk.ac.sanger.artemis.Feature;
import uk.ac.sanger.artemis.components.FeatureDatabasePredicate;

@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) 
public class FeatureDatabasePredicate_ESTest extends FeatureDatabasePredicate_ESTest_scaffolding {

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      FeatureDatabasePredicate featureDatabasePredicate0 = new FeatureDatabasePredicate();
      Feature feature0 = mock(Feature.class, new ViolatedAssumptionAnswer());
      doReturn((Entry) null).when(feature0).getEntry();
      // Undeclared exception!
      try { 
        featureDatabasePredicate0.testPredicate(feature0);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.components.FeatureDatabasePredicate", e);
      }
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      FeatureDatabasePredicate featureDatabasePredicate0 = new FeatureDatabasePredicate();
      uk.ac.sanger.artemis.io.Entry entry0 = mock(uk.ac.sanger.artemis.io.Entry.class, new ViolatedAssumptionAnswer());
      Entry entry1 = mock(Entry.class, new ViolatedAssumptionAnswer());
      doReturn(entry0).when(entry1).getEMBLEntry();
      Feature feature0 = mock(Feature.class, new ViolatedAssumptionAnswer());
      doReturn(entry1).when(feature0).getEntry();
      boolean boolean0 = featureDatabasePredicate0.testPredicate(feature0);
      assertFalse(boolean0);
  }
}
