assertTrue(autorizableBean.isAllowedToApplyChange(currentPlayer));
assertTrue(autorizableBean.isAllowedToSee(currentPlayer));
// Change the owner to no one
autorizableBean.setOwner(new UniqueID());
sleep();
assertTrue(!autorizableBean.isAllowedToApplyChange(currentPlayer));
assertTrue(!autorizableBean.isAllowedToSee(currentPlayer));
// Add us as modifier
UniqueID playerId = currentPlayer.getId();
autorizableBean.addModifier(playerId);
sleep();
assertTrue("Should contain the modifier", autorizableBean
.getModifiers().contains(playerId));
assertTrue(autorizableBean.isAllowedToApplyChange(currentPlayer));
assertTrue(autorizableBean.isAllowedToSee(currentPlayer));
// remove us as modifier
autorizableBean.removeModifier(playerId);
sleep();
assertTrue("Should'nt contain the modifier", !autorizableBean
.getModifiers().contains(playerId));
assertTrue(!autorizableBean.isAllowedToApplyChange(currentPlayer));
assertTrue(!autorizableBean.isAllowedToSee(currentPlayer));
// set list of modifier
HashSet<UniqueID> guids = new HashSet<UniqueID>();
for (int i = 0; i < 100; ++i) {
guids.add(new UniqueID());
}
autorizableBean.setModifiers(guids);
sleep();
assertTrue("the owners must have been set", autorizableBean