assertEquals(3, test.getEdges().size());
}
@Test
public void testInsertLeaf_withDuplicate() {
GraphModel test = new GraphModel();
DependenciesListener builder = new SimpleDependencyListener(test.getBuilder());
FileSystemTreeBuilder treeBuilder = new FileSystemTreeBuilder(builder);
PathInfo leafInfo = new FilePathInfo(new File("this/is/a test/path"));
GraphNode leaf = treeBuilder.insertLeaf(leafInfo);
assertPaths("fs:this/is/a test/path", leaf.getId());
assertEquals(4, test.getNodes().size());
assertEquals(3, test.getEdges().size());
GraphNode dupl = treeBuilder.insertLeaf(leafInfo);
assertEquals(leaf, dupl);
assertPaths("fs:this/is/a test/path", dupl.getId());
assertEquals(4, test.getNodes().size());
assertEquals(3, test.getEdges().size());
}