@Test
  public void testGetResources_none() throws Exception {

    @SuppressWarnings("unchecked")
    ResourceProvider provider = init();

    PredicateBuilder pb = new PredicateBuilder().property(
        HostComponentProcessResourceProvider.CLUSTER_NAME).equals("c1").and();
    pb = pb.property(
        HostComponentProcessResourceProvider.HOST_NAME).equals("h1").and();
    Predicate predicate = pb.property(
        HostComponentProcessResourceProvider.COMPONENT_NAME).equals("comp1").toPredicate();
    
    Request request = PropertyHelper.getReadRequest(Collections.emptySet());
    
    Set<Resource> resources = provider.getResources(request, predicate);
    
    Assert.assertEquals(Integer.valueOf(0), Integer.valueOf(resources.size()));
  }
Tests the {@link HostComponentProcessResourceProvider} class
@author ncole
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/HostComponentProcessResourceProviderTest.java