@Test
public void testGetResourcesWithUnsupportedPropertyPredicate() throws Exception{

  ClusterControllerImpl controller = new ClusterControllerImpl(new TestProviderModule());
  Set<String> propertyIds = new HashSet<String>();
  propertyIds.add(PropertyHelper.getPropertyId("c1", "p1"));
  propertyIds.add(PropertyHelper.getPropertyId("c1", "p2"));
  propertyIds.add(PropertyHelper.getPropertyId("c1", "p3"));
  propertyIds.add(PropertyHelper.getPropertyId("c2", "p4"));
  Request request = PropertyHelper.getReadRequest(propertyIds);
  Predicate predicate = new PredicateBuilder().property(UNSUPPORTED_PROPERTY).equals(1).toPredicate();
  try {
    controller.getResourceIterable(Resource.Type.Host, request, predicate);
    Assert.fail("Expected an UnsupportedPropertyException for the unsupported properties.");
  } catch (UnsupportedPropertyException e) {
    // Expected
  }
}