@Test
public void testIsCollection__False() {

  ResourceDefinition resourceDefinition = createNiceMock(ResourceDefinition.class);
  Map<Resource.Type, String> mapIds = new HashMap<Resource.Type, String>();
  mapIds.put(Resource.Type.Cluster, "cluster");
  mapIds.put(Resource.Type.Service, "service");
  // expectations
  expect(resourceDefinition.getType()).andReturn(Resource.Type.Service).anyTimes();
  expect(resourceDefinition.getSubResourceDefinitions()).andReturn(Collections.<SubResourceDefinition>emptySet()).anyTimes();
  replay(resourceDefinition);
  //test
  ResourceInstance instance = new TestQuery(mapIds, resourceDefinition);
  assertFalse(instance.isCollectionResource());
  verify(resourceDefinition);
}