@Test
public void testUpdateResourcesWithUnsupportedPropertyRequest() throws Exception{

  TestProviderModule providerModule = new TestProviderModule();
  ClusterController controller = new ClusterControllerImpl(providerModule);
  Map<String, Object> propertyMap = new HashMap<String, Object>();
  propertyMap.put(PropertyHelper.getPropertyId("c1", "p1"), 99);
  propertyMap.put(UNSUPPORTED_PROPERTY, 2);
  Request request = PropertyHelper.getUpdateRequest(propertyMap, null);
  Predicate predicate = new PredicateBuilder().property("c1/p2").equals(1).toPredicate();
  try {
    controller.updateResources(Resource.Type.Host, request, predicate);
    Assert.fail("Expected an UnsupportedPropertyException for the unsupported properties.");
  } catch (UnsupportedPropertyException e) {
    // Expected
  }
}