DependencyTypesMapper { public List<DynamicPomDependency> getDependencies(DependencyType key) { return mapping.get(key); } DependencyTypesMapper(); Map<DependencyType, List<DynamicPomDependency>> getMapping(); List<DynamicPomDependency> getDependencies(DependencyType key);  }
@Test public void mappingDependencyTest() { List<DynamicPomDependency> deps = mapper.getDependencies(DependencyType.JPA); assertThat(deps).isNotEmpty(); assertThat(deps).hasSize(1); Map<DependencyType, List<DynamicPomDependency>> map = new HashMap<>(); map.put(DependencyType.JPA, deps); TestUtil.testJPADep(map); }