/*
 * This file was automatically generated by EvoSuite
 * Wed Sep 19 19:11:47 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.SAMRecordComparator;

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

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

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      SAMRecordComparator sAMRecordComparator0 = new SAMRecordComparator();
      // Undeclared exception!
      try { 
        sAMRecordComparator0.compare((Object) null, "");
        fail("Expecting exception: ClassCastException");
      
      } catch(ClassCastException e) {
         //
         // java.lang.String cannot be cast to uk.ac.sanger.artemis.components.alignment.BamViewRecord
         //
         verifyException("uk.ac.sanger.artemis.components.alignment.SAMRecordComparator", e);
      }
  }
}
