private boolean checkInterest(IInteractionContext activeContext, String id) { boolean found = false; for (IInteractionElement elem : activeContext.getAllElements()) { assertEquals(elem.getContentType(), "ecore"); // $NON-NLS-1$ if (elem.getHandleIdentifier().equals(id)) { found = true; } assertTrue(elem.getInterest().isInteresting()); } return found; }