@Test
public void testDeleteResources() throws Exception {

  Resource.Type type = Resource.Type.Request;
  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(RequestResourceProvider.REQUEST_ID_PROPERTY_ID).
    equals("Request100").toPredicate();
  try {
    provider.deleteResources(new RequestImpl(null, null, null, null), predicate);
    Assert.fail("Expected an UnsupportedOperationException");
  } catch (UnsupportedOperationException e) {
    // expected
  }
  // verify
  verify(managementController);
}