@Test
public void testGetAllDependencies(){

    final Module module = DataModelFactory.createModule("module1", "1.0.0-SNAPSHOT");
    final Artifact artifact = DataModelFactory.createArtifact("com.my.company", "dependency1", "1.0.0-SNAPSHOT", null, "jar", "jar");
    final Dependency dependency = DataModelFactory.createDependency(artifact, Scope.COMPILE);
    module.addDependency(dependency);
    final List<Dependency> dependencies = ModuleUtils.getAllDependencies(module);
    assertNotNull(dependencies);
    assertEquals(1, dependencies.size());
    assertEquals(dependency, dependencies.get(0));
}