@Test
public void should_add_clone_groups() throws Exception {
DuplicationCache cache = new DuplicationCache(caches);
DuplicationGroup group1 = new DuplicationGroup(new DuplicationGroup.Block("foo", 1, 2))
.addDuplicate(new DuplicationGroup.Block("foo", 1, 2))
.addDuplicate(new DuplicationGroup.Block("foo2", 12, 22))
.addDuplicate(new DuplicationGroup.Block("foo3", 13, 23));
DuplicationGroup group2 = new DuplicationGroup(new DuplicationGroup.Block("2foo", 1, 2))
.addDuplicate(new DuplicationGroup.Block("2foo", 1, 2))
.addDuplicate(new DuplicationGroup.Block("2foo2", 12, 22))
.addDuplicate(new DuplicationGroup.Block("2foo3", 13, 23));
assertThat(cache.entries()).hasSize(0);