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

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

import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
import uk.ac.sanger.artemis.components.alignment.SAMRecordSequenceString;

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

  @Test(timeout = 4000)
  public void test01()  throws Throwable  {
      SAMRecordSequenceString sAMRecordSequenceString0 = new SAMRecordSequenceString("");
      int int0 = sAMRecordSequenceString0.length();
      assertEquals(0, int0);
  }

  @Test(timeout = 4000)
  public void test02()  throws Throwable  {
      SAMRecordSequenceString sAMRecordSequenceString0 = new SAMRecordSequenceString("_^6R$R+)/yI^$0Rc;m");
      int int0 = sAMRecordSequenceString0.length();
      assertEquals(18, int0);
  }

  @Test(timeout = 4000)
  public void test03()  throws Throwable  {
      SAMRecordSequenceString sAMRecordSequenceString0 = new SAMRecordSequenceString("");
      boolean boolean0 = sAMRecordSequenceString0.isSecondaryAlignment();
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test04()  throws Throwable  {
      SAMRecordSequenceString sAMRecordSequenceString0 = new SAMRecordSequenceString((String) null);
      String string0 = sAMRecordSequenceString0.getSequence();
      assertNull(string0);
  }

  @Test(timeout = 4000)
  public void test05()  throws Throwable  {
      SAMRecordSequenceString sAMRecordSequenceString0 = new SAMRecordSequenceString("");
      String string0 = sAMRecordSequenceString0.getSequence();
      assertEquals("", string0);
  }

  @Test(timeout = 4000)
  public void test06()  throws Throwable  {
      SAMRecordSequenceString sAMRecordSequenceString0 = new SAMRecordSequenceString("1|D'\"wr;M");
      char char0 = sAMRecordSequenceString0.charAt(0);
      assertEquals('1', char0);
  }

  @Test(timeout = 4000)
  public void test07()  throws Throwable  {
      SAMRecordSequenceString sAMRecordSequenceString0 = new SAMRecordSequenceString("JjH>+4@t?8o%G9O");
      // Undeclared exception!
      try { 
        sAMRecordSequenceString0.substring(1906, (-1));
        fail("Expecting exception: java.lang.StringIndexOutOfBoundsException");
      
      } catch(java.lang.StringIndexOutOfBoundsException e) {
        
      }
  }

  @Test(timeout = 4000)
  public void test08()  throws Throwable  {
      SAMRecordSequenceString sAMRecordSequenceString0 = new SAMRecordSequenceString("1|D'\"wr;M");
      // Undeclared exception!
      try { 
        sAMRecordSequenceString0.charAt(816);
        fail("Expecting exception: StringIndexOutOfBoundsException");
      
      } catch(StringIndexOutOfBoundsException e) {
      }
  }

  @Test(timeout = 4000)
  public void test09()  throws Throwable  {
      SAMRecordSequenceString sAMRecordSequenceString0 = new SAMRecordSequenceString((String) null);
      boolean boolean0 = sAMRecordSequenceString0.isSecondaryAlignment();
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test10()  throws Throwable  {
      SAMRecordSequenceString sAMRecordSequenceString0 = new SAMRecordSequenceString("uk.ac.sanger.ateEis.components.alignbent.SAMRecordSequenc&String");
      char char0 = sAMRecordSequenceString0.charAt('=');
      assertEquals('i', char0);
  }

  @Test(timeout = 4000)
  public void test12()  throws Throwable  {
      SAMRecordSequenceString sAMRecordSequenceString0 = new SAMRecordSequenceString("*");
      assertTrue(sAMRecordSequenceString0.isSecondaryAlignment());
  }

  @Test(timeout = 4000)
  public void test13()  throws Throwable  {
      SAMRecordSequenceString sAMRecordSequenceString0 = new SAMRecordSequenceString((String) null);
      // Undeclared exception!
      try { 
        sAMRecordSequenceString0.length();
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.components.alignment.SAMRecordSequenceString", e);
      }
  }

  @Test(timeout = 4000)
  public void test15()  throws Throwable  {
      SAMRecordSequenceString sAMRecordSequenceString0 = new SAMRecordSequenceString("20VSfA*^,zt`XSm$z");
      // Undeclared exception!
      try { 
        sAMRecordSequenceString0.substring(42, 0);
        fail("Expecting exception: StringIndexOutOfBoundsException");
      
      } catch(StringIndexOutOfBoundsException e) {
      }
  }
}
