@Test public void testRemoveRole() throws Exception { Role toRemove = entity.getActors().iterator().next(); actors.remove(toRemove); entity.removeRole(toRemove.getRole()); assertEquals(actors, entity.getActors()); }