@Test
public void update_with() {
TableName.run(platoon, new Atom() {
public void run() {
Tank t = dao.fetchLinks(dao.fetch(Tank.class, "M1-A1"), "motorman");
t.getMotorman().setAge(32);
t.setWeight(50);
dao.updateWith(t, "motorman");
Soldier s = dao.fetch(Soldier.class, t.getMotorName());
assertEquals(32, s.getAge());
t = dao.fetch(Tank.class, t.getId());
assertEquals(50, t.getWeight());
}
});
}