@Test
public void testUpdateAndReturn() throws Exception {

    TestModel model = dao.create(TestModel.builder().name("Ian").build());
    TestModel prev = dao.updateAndReturn(model.getId(), dao.updateOf(TestModel.builder().name("Rename").build()));
    assertEquals(model, prev);
    TestModel change = dao.load(model.getId());
    assertEquals("Rename", change.getName());
}