/*
 * This file was automatically generated by EvoSuite
 * Thu Sep 20 14:29:45 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 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.EmblMisc;
import uk.ac.sanger.artemis.util.LinePushBackReader;

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

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

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      LinePushBackReader linePushBackReader0 = mock(LinePushBackReader.class, new ViolatedAssumptionAnswer());
      doReturn((String) null).when(linePushBackReader0).readLine();
      EmblMisc emblMisc0 = new EmblMisc(linePushBackReader0);
      assertNull(emblMisc0.getLine());
  }

  @Test(timeout = 4000)
  public void test2()  throws Throwable  {
      EmblMisc emblMisc0 = new EmblMisc("4aB[pR-Xz1zp?V13wW");
      assertEquals("4aB[pR-Xz1zp?V13wW", emblMisc0.getLine());
  }
}
