@Test
public void getAllDbDependencies(){

    final DbModule module = new DbModule();
    module.addDependency("", Scope.TEST);
    final DbModule submodule1 = new DbModule();
    submodule1.addDependency("", Scope.TEST);
    final DbModule submodule2 = new DbModule();
    submodule2.addDependency("", Scope.TEST);
    submodule1.addSubmodule(submodule2);
    module.addSubmodule(submodule1);
    final List<DbDependency> dependencies = DataUtils.getAllDbDependencies(module);
    assertEquals(3, dependencies.size());
}