@Test
public void testUpdateResources() throws Exception {

  Resource.Type type = Resource.Type.ClientConfig;
  AmbariManagementController managementController = createMock(AmbariManagementController.class);
  RequestStatusResponse response = createNiceMock(RequestStatusResponse.class);
  // replay
  replay(managementController, response);
  ResourceProvider provider = AbstractControllerResourceProvider.getResourceProvider(
      type,
      PropertyHelper.getPropertyIds(type),
      PropertyHelper.getKeyPropertyIds(type),
      managementController);
  // add the property map to a set for the request.
  Map<String, Object> properties = new LinkedHashMap<String, Object>();
  // create the request
  Request request = PropertyHelper.getUpdateRequest(properties, null);
  Predicate predicate = new PredicateBuilder().property(
          ClientConfigResourceProvider.COMPONENT_CLUSTER_NAME_PROPERTY_ID).equals("c1").toPredicate();
  try {
    provider.updateResources(request, predicate);
    Assert.fail("Expected an UnsupportedOperationException");
  } catch (SystemException e) {
    // expected
  }
  // verify
  verify(managementController, response);
}