@Test
public void testFindDependencies() {

    String className = DependencyReaderTest.class.getCanonicalName();
    String fileName = TEST_CLASSES_ROOT + "/" + className.replaceAll("\\.", "/") + ".class";
    byte[] bytesFromFile = FileSystemUtil.readBytesFromFile(fileName);
    dependencyReader.readDependencies(bytesFromFile);
    assertThat(dependencyGraph.hasNode(className), is(true));
    assertThat(dependencyGraph.hasNode(DependencyGraphFactory.class.getName()), is(true));
    Node from = dependencyGraph.getNode(className);
    Node to = dependencyGraph.getNode(DependencyGraphFactory.class.getName());
    assertThat(dependencyGraph.getIncomingEdges(to).size(), is(1));
    assertThat(dependencyGraph.hasNode("java.lang.Object"), is(false)); // we excluded it.
    Dependency dependency = dependencyGraph.getEdge(from, to);
    assertThat(dependency, notNullValue());
    assertThat(dependency.getDependencyType(), is(DependencyType.READ_WRITE));
}