@Test
public void testUpdateResources() throws Exception {

  StageResourceProvider provider = new StageResourceProvider(managementController);
  Request request = createNiceMock(Request.class);
  Predicate predicate = createNiceMock(Predicate.class);
  expect(clusters.getClusterById(anyLong())).andReturn(cluster).anyTimes();
  expect(request.getProperties()).andReturn(Collections.<Map<String,Object>>emptySet());
  replay(clusters, cluster, request, predicate);
  provider.updateResources(request, predicate);
  verify(clusters, cluster);
}