@Test
public void testPopulateResources_allTypes() throws Exception {

  TestProviderModule providerModule = new TestProviderModule();
  ClusterControllerImpl controller = new ClusterControllerImpl(providerModule);
  Request request = PropertyHelper.getReadRequest();
  Predicate predicate = new PredicateBuilder().property("c3/p6").equals(1).toPredicate();
  for (Resource.Type type : Resource.Type.values()) {
    Resource resource = new ResourceImpl(type);
    // verify that we can call populateResources for all resource types even if there
    // are no property providers defined for that type.
    controller.populateResources(type, Collections.singleton(resource), request, predicate);
  }
}