listener.batchDone();
listener.endProcessing();
Collection<Link> all = linkdb.getAllLinks();
assertEquals(1, all.size());
Link original = all.iterator().next();
verifySame(new Link("1", "2", LinkStatus.INFERRED, LinkKind.SAME, 0.95),
original);
listener.startProcessing();
listener.batchReady(1);
listener.matches(r1, r2, 0.947);
listener.batchDone();
listener.endProcessing();
all = linkdb.getAllLinks();
assertEquals(1, all.size());
Link newlink = all.iterator().next();
verifySame(new Link("1", "2", LinkStatus.INFERRED, LinkKind.SAME, 0.95),
newlink);
assertEquals(original.getTimestamp(), newlink.getTimestamp());
}