void () { List<DeclaredDependency> dependencies = myModifierService.declaredDependencies(getModule("project")); assertNotNull(dependencies); assertEquals(2, dependencies.size()); XmlTag someArtifact = findDependencyTag("somegroup", "someartifact", "1.0"); XmlTag another = findDependencyTag("anothergroup", "anotherArtifact", "2.0"); assertEquals(new UnifiedDependency("somegroup", "someartifact", "1.0", null), dependencies.get(0).getUnifiedDependency()); assertEquals(new UnifiedDependency("anothergroup", "anotherArtifact", "2.0", null), dependencies.get(1).getUnifiedDependency()); assertEquals(someArtifact, dependencies.get(0).getPsiElement()); assertEquals(another, dependencies.get(1).getPsiElement()); }