private static void testCommentUpdate(Logic logic) throws InterruptedException {
final boolean[] success = {false};
final Object lock = new Object();
final Employee emp = logic.getDBControl().getEmployee(logic.getEmployee().getId());
final String newPart = "///" + DateTimeUtils.formatStandardWay(new Date());
emp.addObserver(new Observer() {
public void inform(DataObject d) {
logger.info("++++++++++++++++ inform " + prettyPrintObjectForLogging(d) + " " + (d == emp));
if (d.isValid() && d == emp && emp.getComment().endsWith(newPart)) {
logger.info("Got the udpated object");
success[0] = true;