@Test
public void testUpdateResources() throws Exception {

  AmbariManagementController amc = createMock(AmbariManagementController.class);
  LdapSyncEventResourceProvider provider = new TestLdapSyncEventResourceProvider(amc);
  Request request = createNiceMock(Request.class);
  try {
    provider.updateResources(request, null);
    Assert.fail("expected UnsupportedOperationException");
  } catch (UnsupportedOperationException e) {
    // expected
  }
}