@Test
public void testDeleteResources() throws Exception {

  Resource.Type type = Resource.Type.Configuration;
  AmbariManagementController managementController = createMock(AmbariManagementController.class);
  // replay
  replay(managementController);
  ResourceProvider provider = AbstractControllerResourceProvider.getResourceProvider(
      type,
      PropertyHelper.getPropertyIds(type),
      PropertyHelper.getKeyPropertyIds(type),
      managementController);
  Predicate predicate = new PredicateBuilder().property(
      ConfigurationResourceProvider.CONFIGURATION_CONFIG_TAG_PROPERTY_ID).equals("Configuration100").toPredicate();
  try {
    provider.deleteResources(new RequestImpl(null, null, null, null), predicate);
    Assert.fail("Expected an UnsupportedOperationException");
  } catch (UnsupportedOperationException e) {
    // expected
  }
  // verify
  verify(managementController);
}