@Test(expected=IllegalArgumentException.class)
public void testCreate_HostGroupWithInvalidComponent() throws Exception {

  Map<String, Object> props = BlueprintResourceProviderTest.getBlueprintTestProperties().iterator().next();
  // change a component name to an invalid name
  ((Set<Map<String, Object>>) ((Set<Map<String, Object>>) props.get(BlueprintResourceProvider.HOST_GROUP_PROPERTY_ID)).
      iterator().next().get(BlueprintResourceProvider.COMPONENT_PROPERTY_ID)).iterator().next().put("name", "INVALID_COMPONENT");
  replay(stack, dao, entity, configEntity);
  testFactory.createBlueprint(props, null);
}