/*
 * This file was automatically generated by EvoSuite
 * Wed Sep 19 19:26:00 GMT 2018
 */

package uk.ac.sanger.artemis.io;

import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.EvoAssertions.*;
import java.io.Writer;
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.io.FeatureTable;
import uk.ac.sanger.artemis.io.StreamFeatureTable;

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

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      StreamFeatureTable streamFeatureTable0 = null;
      try {
        streamFeatureTable0 = new StreamFeatureTable((FeatureTable) null);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.io.StreamFeatureTable", e);
      }
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      StreamFeatureTable streamFeatureTable0 = new StreamFeatureTable();
      Writer writer0 = mock(Writer.class, new ViolatedAssumptionAnswer());
      streamFeatureTable0.writeToStream(writer0);
  }

  @Test(timeout = 4000)
  public void test2()  throws Throwable  {
      StreamFeatureTable streamFeatureTable0 = new StreamFeatureTable();
      StreamFeatureTable streamFeatureTable1 = new StreamFeatureTable(streamFeatureTable0);
      assertFalse(streamFeatureTable1.equals((Object)streamFeatureTable0));
  }
}
