// find the factory for it
EFactory factory = ContainmentTestCase.getAllClasses().get(typ);
assertNotNull("Could not find factory for '" + typ.getName() + "'", factory);
// instantiate the object
EObject obj = factory.create(typ);
// the 'from' and to' should be null, so we need to remove this phantom edge
assertTrue("We should remove type " + typ.getName() + ": " + obj,
RemovePhantomEdgesAction.shouldRemove(obj));
}