type.loadNewVersion("2", retrieveRename(t, t + "2"));
result = runConstructor(type.getClazz(), "");
assertEquals("Hello", result.stdout);
// should be no changes
TypeDelta td = type.getLiveVersion().getTypeDelta();
assertNotNull(td);
assertFalse(td.hasAnythingChanged());
assertNull(td.getChangedMethods());
// this version changes the constructor
type.loadNewVersion("3", retrieveRename(t, t + "3"));
result = runConstructor(type.getClazz(), "");
assertEquals("Goodbye", result.stdout);
td = type.getLiveVersion().getTypeDelta();
assertNotNull(td);
assertTrue(td.hasAnythingChanged());
Map<String, MethodDelta> changedMethods = td.getChangedMethods();
assertNotNull(changedMethods);
assertEquals(1, changedMethods.size());
assertEquals("MethodDelta[method:<init>()V]", changedMethods.get("<init>()V").toString());
MethodDelta md = changedMethods.get("<init>()V");
assertTrue(md.hasAnyChanges());