@Test
public void testDeleteResourcesWithUnsupportedProperty() throws Exception{

  TestProviderModule providerModule = new TestProviderModule();
  ClusterController controller = new ClusterControllerImpl(providerModule);
  Predicate predicate = new PredicateBuilder().property(UNSUPPORTED_PROPERTY).equals(1).toPredicate();
  try {
    controller.deleteResources(Resource.Type.Host, new RequestImpl(null, null, null, null), predicate);
    Assert.fail("Expected an UnsupportedPropertyException for the unsupported properties.");
  } catch (UnsupportedPropertyException e) {
    // Expected
  }
}