@Test(expected = UnsupportedOperationException.class)
public void testDeleteResources() throws Exception {

  Resource.Type type = Resource.Type.Task;
  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(TaskResourceProvider.TASK_ID_PROPERTY_ID).equals("Task100").toPredicate();
  provider.deleteResources(new RequestImpl(null, null, null, null), predicate);
  // verify
  verify(managementController);
}