### Question:
Artifact { public static void validateVersion(String compileTimeVersion) { if (!VERSION.equals(compileTimeVersion)) { throw new DomaException(Message.DOMA0003, VERSION, compileTimeVersion); } }  static String getName(); static String getVersion(); static void validateVersion(String compileTimeVersion);  }### Answer:
@Test public void testValidateVersion() { Artifact.validateVersion(Artifact.getVersion()); }
@Test public void testValidateVersion_conflicted() { try { Artifact.validateVersion("hoge"); fail(); } catch (DomaException expected) { System.out.println(expected.getMessage()); assertFalse(expected.getMessage().contains("{")); } }