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

package uk.ac.sanger.artemis.io;

import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
import uk.ac.sanger.artemis.io.InvalidKeyException;
import uk.ac.sanger.artemis.io.Key;

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

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      InvalidKeyException invalidKeyException0 = new InvalidKeyException("", (Key) null);
      Key key0 = invalidKeyException0.getKey();
      assertNull(key0);
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      Key key0 = Key.CDS;
      InvalidKeyException invalidKeyException0 = new InvalidKeyException("Y0", key0);
      Key key1 = invalidKeyException0.getKey();
      assertEquals("CDS", key1.getKeyString());
  }

  @Test(timeout = 4000)
  public void test2()  throws Throwable  {
      Key key0 = new Key("");
      InvalidKeyException invalidKeyException0 = new InvalidKeyException("", key0);
      Key key1 = invalidKeyException0.getKey();
      assertSame(key0, key1);
  }
}
