@Test
public void testCreateResources() throws Exception {

  AmbariManagementController managementController = createMock(AmbariManagementController.class);
  RequestStatusResponse response = createNiceMock(RequestStatusResponse.class);
  managementController.createConfiguration(AbstractResourceProviderTest.Matcher.getConfigurationRequest(
      "Cluster100", "type", "tag", new HashMap<String, String>(), null));
  expectLastCall().andReturn(null);
  // replay
  replay(managementController, response);
  ConfigurationResourceProvider provider = new ConfigurationResourceProvider(
      managementController);
  Set<Map<String, Object>> propertySet = new LinkedHashSet<Map<String, Object>>();
  Map<String, Object> properties = new LinkedHashMap<String, Object>();
  properties.put(ConfigurationResourceProvider.CONFIGURATION_CLUSTER_NAME_PROPERTY_ID, "Cluster100");
  properties.put(ConfigurationResourceProvider.CONFIGURATION_CONFIG_TAG_PROPERTY_ID, "tag");
  properties.put(ConfigurationResourceProvider.CONFIGURATION_CONFIG_TYPE_PROPERTY_ID, "type");
  propertySet.add(properties);
  // create the request
  Request request = PropertyHelper.getCreateRequest(propertySet, null);
  provider.createResources(request);
  // verify
  verify(managementController, response);
}