public void test() throws Exception {

    Order po = OrderMother.makeOrder();
    save(po.getRestaurant());
    save(po);

    Order detachedOrder = am.detach(po);
    detachedOrder.getVersion();
    detachedOrder.noteSent("msgid", new Date());
    detachedOrder.accept("x");

    Order attachedOrder = am.attach(detachedOrder);
    assertFalse(attachedOrder.isAcknowledgable());
  }