### Question:
DependencyGraphBuilder { public DependencyGraph buildMavenDependencyGraph(Dependency dependency) { ImmutableList<DependencyNode> roots = ImmutableList.of(new DefaultDependencyNode(dependency)); return buildDependencyGraph(roots, RepositoryUtility.newSessionForMaven(system)); } DependencyGraphBuilder();  DependencyGraphBuilder(Iterable<String> mavenRepositoryUrls); DependencyGraph buildFullDependencyGraph(List<Artifact> artifacts); DependencyGraph buildVerboseDependencyGraph(List<Artifact> artifacts); DependencyGraph buildVerboseDependencyGraph(Artifact artifact); DependencyGraph buildMavenDependencyGraph(Dependency dependency);  }### Answer:
@Test public void testGetTransitiveDependencies() { Dependency dependency = new Dependency(datastore, "compile"); DependencyGraph graph = dependencyGraphBuilder.buildMavenDependencyGraph(dependency); List<DependencyPath> list = graph.list(); Assert.assertTrue(list.size() > 10); int guavaCount = countArtifactId(graph, "guava"); Assert.assertEquals(1, guavaCount); }
@Test public void testSetDetectedOsSystemProperties_netty4Dependency() { Artifact nettyArtifact = new DefaultArtifact("io.netty:netty-all:4.1.31.Final"); DependencyGraph dependencyGraph = dependencyGraphBuilder.buildMavenDependencyGraph(new Dependency(nettyArtifact, "")); Truth.assertThat(dependencyGraph.getUnresolvedArtifacts()).isEmpty(); Truth.assertThat(dependencyGraph.list()).isNotEmpty(); }