auxListInstances();
Set<Link> listRelations = myKitchen.getRawLinks();
Iterator<Link> it = listRelations.iterator();
while (it.hasNext()) {
Link rel = it.next();
// Should find one binding with buttonKitchen and one binding with a
// lightKitchen
System.out.println("Link : " + rel);
System.err.println("-> " + rel.getDestination().getName());
if (linksKitchen.contains(rel.getDestination().getName())) {
linksKitchen.remove(rel.getDestination().getName());
} else {
Assert.fail("testMyKitchenBinding() -> this link should not exists : "
+ rel.getDestination().getName());
}
}
if (linksKitchen.size() > 0) {
Assert.fail("testMyKitchenBinding() -> not all links completed, "
+ linksKitchen.size() + " links remaining");