@Test
public void delete_null_field_links_partly() {
TableName.run(platoon, new Atom() {
public void run() {
Platoon p = dao.fetchLinks(dao.fetch(Platoon.class), "tanks|soliders");
p.getTanks().remove("M1-A1");
p.getSoliders().remove(0);
dao.deleteLinks(p, "tanks|soliders");
assertEquals(1, dao.count(Platoon.class));
assertEquals(1, dao.count(Soldier.class));
assertEquals(1, dao.count(Tank.class));
assertEquals(6, dao.count("dao_d_m_soldier_tank_" + platoon.getId()));