public void execute() {
assertFalse(result.isEmpty());
List<String> boxColors = new ArrayList<String>();
for (Box box : result) {
BoxInfo info = (BoxInfo) box
.readPropertyDirectly(Box.BOX_INFO_PROPERTY);
assertNotNull(info);
boxColors.add(info.getColor());
assertEquals(PersistenceState.COMMITTED, info.getPersistenceState());
}
assertTrue(boxColors.containsAll(Arrays.asList("red", "green")));
}
});
}