@Test
public void testCreateResources() throws Exception {

  AmbariManagementController amc = createMock(AmbariManagementController.class);
  LdapSyncEventResourceProvider provider = new TestLdapSyncEventResourceProvider(amc);
  Set<Map<String, Object>> properties = new HashSet<Map<String, Object>>();
  Map<String, Object> propertyMap = new HashMap<String, Object>();
  Set<Map<String, String>> specs = new HashSet<Map<String, String>>();
  propertyMap.put(LdapSyncEventResourceProvider.EVENT_SPECS_PROPERTY_ID, specs);
  properties.add(propertyMap);
  provider.createResources(PropertyHelper.getCreateRequest(properties, null));
  Set<Resource> resources = provider.getResources(PropertyHelper.getReadRequest(), null);
  Assert.assertEquals(1, resources.size());
}