@Test
public void update_links() {
TableName.run(platoon, new Atom() {
public void run() {
Tank t = dao.fetchLinks(dao.fetch(Tank.class, "T92"), "members");
t.setWeight(42);
t.getMembers().get("ZZH").setAge(30);
t.getMembers().get("Mick").setAge(22);
t.getMembers().get("Peter").setAge(28);
dao.updateLinks(t, "members");
assertEquals(30, dao.fetch(Soldier.class, "ZZH").getAge());
assertEquals(22, dao.fetch(Soldier.class, "Mick").getAge());
assertEquals(28, dao.fetch(Soldier.class, "Peter").getAge());
assertEquals(0, dao.fetch(Tank.class, "T92").getWeight());