MockList { public static boolean shouldBeMocked(String originalClass) throws IllegalArgumentException { return getMockClass(originalClass) != null; }  static List<Class<? extends EvoSuiteMock>> getList(); static boolean shouldBeMocked(String originalClass); static boolean isAMockClass(String mockClass); static Class<?> getMockClass(String originalClass);  }
@Test public void testShouldBeMocked(){ RuntimeSettings.mockJVMNonDeterminism = true; Assert.assertTrue(new MockException() instanceof OverrideMock); Assert.assertTrue(MockList.shouldBeMocked(Exception.class.getName())); Assert.assertTrue(new MockRuntime() instanceof StaticReplacementMock); Assert.assertTrue(MockList.shouldBeMocked(java.lang.Runtime.class.getName())); }