List<String> locationList = Arrays.asList(locations);
ModuleDefinition parent = new SimpleModuleDefinition(null, "bean", locations);
HashMap<String, Set<String>> map = new HashMap<String, Set<String>>();
map.put("key", Collections.EMPTY_SET);
SimpleBeansetModuleDefinition spec = new SimpleBeansetModuleDefinition(parent, "p1", locations, map);
assertEquals(parent, spec.getParentDefinition());
assertEquals("p1", spec.getName());
assertEquals(Collections.EMPTY_SET, spec.getOverrides().get("key"));
assertEquals(locationList, spec.getConfigLocations());
spec = new SimpleBeansetModuleDefinition(parent, "p1", locations);
assertEquals(parent, spec.getParentDefinition());
assertEquals("p1", spec.getName());
assertEquals(Collections.EMPTY_MAP, spec.getOverrides());
assertEquals(locationList, spec.getConfigLocations());
spec = new SimpleBeansetModuleDefinition(parent, "p1", locations, "key: value");
assertEquals(parent, spec.getParentDefinition());
assertEquals("p1", spec.getName());
assertNotNull(spec.getOverrides().get("key"));
assertEquals(locationList, spec.getConfigLocations());
}