@Test
public void addMissingProjectDependencies() throws IOException {

    InputStream inputStream = new NamedGraphBuilder()
            .project(p -> {})
            .component(c -> c.name("test1"))
            .component(c -> c.name("test2"))
            .build();
    BlackDuckIo bdio = graph.io(testBdio(TT.Metadata, TT.root));
    bdio.readGraph(inputStream, null, null);
    BlackDuckIoNormalizationSpi spi = spi(bdio, graph.traversal().withStrategies(testImplicitConstant()));
    spi.identifyRoot();
    spi.addMissingProjectDependencies();
    GraphTraversalSource g = graph.traversal();
    List<String> directDependencyNames = g.V().hasLabel(TT.Metadata)
            .out(TT.root)
            .out(Bdio.ObjectProperty.dependency.name())
            .out(Bdio.ObjectProperty.dependsOn.name())
            .<String> values(Bdio.DataProperty.name.name())
            .toList();
    assertThat(directDependencyNames).containsExactly("test1", "test2");
}