@Test
public void testRequireSameVersionFailure() {
try {
DDMSVersion.setCurrentVersion("2.0");
Identifier identifier = new Identifier("Test", "Value");
DDMSVersion.setCurrentVersion("3.0");
Identifier identifier2 = new Identifier("Test", "Value");
Util.requireCompatibleVersion(identifier, identifier2);
fail("Allowed different versions.");
}
catch (InvalidDDMSException e) {
expectMessage(e, "A child component, ddms:identifier");