@SuppressWarnings("unchecked")
public void testConstructorsWithParentAndMultiLocations() {
String[] locations = new String[] {"location1","location2"};
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());