ch.getDefinition().getClass().getName());
Object instance = ch.getDefinition().create(project);
assertTrue("Wrong instance", instance instanceof ServiceInstance);
assertEquals("Wrong ServiceDef", service, ((ServiceInstance)instance).getServiceDef());
AntTypeDefinition otherDef = new AntTypeDefinition();
assertTrue("TypeDefinition should be same",
ch.getDefinition().sameDefinition(ch.getDefinition(), project));
assertTrue("TypeDefinition shouldn't be same",
!ch.getDefinition().sameDefinition(otherDef, project));
assertTrue("TypeDefinition should be similar",