@Test
public void testCreateResourcesWithUnsupportedProperty() throws Exception{

  TestProviderModule providerModule = new TestProviderModule();
  ClusterController controller = new ClusterControllerImpl(providerModule);
  Set<Map<String, Object>> properties = new HashSet<Map<String, Object>>();
  Map<String, Object> propertyMap = new HashMap<String, Object>();
  propertyMap.put(PropertyHelper.getPropertyId("c1", "p1"), 99);
  propertyMap.put(UNSUPPORTED_PROPERTY, 2);
  properties.add(propertyMap);
  Request request = PropertyHelper.getCreateRequest(properties, null);
  try {
    controller.createResources(Resource.Type.Host, request);
    Assert.fail("Expected an UnsupportedPropertyException for the unsupported properties.");
  } catch (UnsupportedPropertyException e) {
    // Expected
  }
}