when(this.module.getAllMavenModules()).thenReturn(Lists.newArrayList(this.module, pluginModule));
DependencyGraph graph = MockHelper.mockDependencyGraph(
Lists.<AbstractProject<?,?>>newArrayList(this.module, pluginModule));
graph.build();
@SuppressWarnings("rawtypes")
List<AbstractProject> downstream = graph.getDownstream(pluginModule);
Assert.assertEquals(1, downstream.size());
Assert.assertSame(this.module, downstream.get(0));