@Test
public void testFilterWithComp() throws Exception {

  GetCompInstancesRequestProto req = GetCompInstancesRequestProto.newBuilder()
      .addAllComponentNames(Lists.newArrayList("compa")).build();
  List<ComponentContainers> compContainers = FilterUtils.filterInstances(
      new MockRunningServiceContext(rule,
          TestServiceManager.createBaseDef("service")), req);
  Assert.assertEquals("num comps", 1, compContainers.size());
  Assert.assertEquals("comp name", "compa",
      compContainers.get(0).getComponentName());
  Assert.assertEquals("num containers", 2,
      compContainers.get(0).getContainers().size());
}