@Test
public void testInferenceDifferentBig() {
((InMemoryLinkDatabase) linkdb).setDoInference(true);
// cluster 1
Link link1 = same("1", "3");
Link link2 = different("1", "2");
Link link3 = new Link("2", "3", LinkStatus.ASSERTED, LinkKind.DIFFERENT, 1.0);
// cluster 2
Link link4 = same("4", "6");
Link link5 = different("4", "5");
Link link6 = new Link("5", "6", LinkStatus.ASSERTED, LinkKind.DIFFERENT, 1.0);
// merge the two clusters
Link link7 = same("3", "4");
Link link8 = new Link("2", "4", LinkStatus.ASSERTED, LinkKind.DIFFERENT, 1.0);
Link link9 = new Link("2", "6", LinkStatus.ASSERTED, LinkKind.DIFFERENT, 1.0);
Link link10 = new Link("1", "4", LinkStatus.ASSERTED, LinkKind.SAME, 1.0);
Link link11 = new Link("1", "6", LinkStatus.ASSERTED, LinkKind.SAME, 1.0);
Link link12 = new Link("3", "5", LinkStatus.ASSERTED, LinkKind.DIFFERENT, 1.0);
Link link13 = new Link("1", "5", LinkStatus.ASSERTED, LinkKind.DIFFERENT, 1.0);
Link link14 = new Link("3", "6", LinkStatus.ASSERTED, LinkKind.SAME, 1.0);
Collection<Link> links = linkdb.getAllLinks();
verifyContained(links, new Link[] {link1, link2, link3, link4, link5, link6,
link7, link8, link9, link10, link11,
link12, link13, link14});