@Test
public void testCreateResources() throws Exception {

  IvoryService service = createMock(IvoryService.class);
  Set<Map<String, Object>> propertySet = new HashSet<Map<String, Object>>();
  Map<String, Object> properties = new HashMap<String, Object>();
  // replay
  replay(service);
  propertySet.add(properties);
  Request request = PropertyHelper.getCreateRequest(propertySet, Collections.<String,String>emptyMap());
  InstanceResourceProvider provider = new InstanceResourceProvider(service,
      PropertyHelper.getPropertyIds(Resource.Type.DRInstance),
      PropertyHelper.getKeyPropertyIds(Resource.Type.DRInstance));
  try {
    provider.createResources(request);
    Assert.fail("Expected UnsupportedOperationException");
  } catch (UnsupportedOperationException e) {
    // expected
  }
  // verify
  verify(service);
}