### Question:
EngineAwt extends Engine { public static void start(String name, Version version) { Engine.start(new EngineAwt(name, version, Constant.EMPTY_STRING)); } EngineAwt(String name, Version version, String resourcesDir);  EngineAwt(String name, Version version, Class<?> classResource); static void start(String name, Version version); static void start(String name, Version version, String resourcesDir); static void start(String name, Version version, Class<?> classResource);  }### Answer:
@Test void testDefaultAlready() { EngineAwt.start(EngineAwtTest.class.getName(), Version.DEFAULT); assertThrows(() -> EngineAwt.start(EngineAwtTest.class.getName(), Version.DEFAULT), "The engine has already been started !"); }
@Test void testNullResources() { assertThrows(() -> EngineAwt.start(EngineAwtTest.class.getName(), Version.DEFAULT, (String) null), "Unexpected null argument !"); }
@Test void testResourcesAlready() { EngineAwt.start(EngineAwtTest.class.getName(), Version.DEFAULT, Constant.EMPTY_STRING); assertTrue(Engine.isStarted()); assertThrows(() -> EngineAwt.start(EngineAwtTest.class.getName(), Version.DEFAULT, Constant.EMPTY_STRING), "The engine has already been started !"); }
@Test void testClass() { EngineAwt.start(EngineAwtTest.class.getName(), Version.DEFAULT, EngineAwtTest.class); assertTrue(Engine.isStarted()); assertThrows(() -> EngineAwt.start(EngineAwtTest.class.getName(), Version.DEFAULT, EngineAwtTest.class), "The engine has already been started !"); }