@Test
public void update() {

    TestModel model = new TestModel("1");
    dao.create(model);
    model.sub = new TestModel.SubModel();
    model.sub.name = "test";
    dao.update(model.id, model);
    assertThat(dao.read("1").get().sub.name).isEqualTo(model.sub.name);
}