REVIEW-3036: Add missing unit test for DefaultNamedDomainObjectCollection#getNames()
REVIEW-3040: Resolve fileResolver via toplevel api; use TestFiles fixture instead of BaseDireResolver in unit tests.
REVIEW-3041: simplify test.
remove unused import
REVIEW-3025: Simplified code.