@Test
public void testExecute__Host_collection_noSpecifiedProps() throws Exception {

  ResourceDefinition resourceDefinition = createNiceMock(ResourceDefinition.class);
  Map<Resource.Type, String> mapIds = new HashMap<Resource.Type, String>();
  // expectations
  expect(resourceDefinition.getType()).andReturn(Resource.Type.Host).anyTimes();
  Set<SubResourceDefinition> setChildren = new HashSet<SubResourceDefinition>();
  expect(resourceDefinition.getSubResourceDefinitions()).andReturn(setChildren).anyTimes();
  replay(resourceDefinition);
  //test
  QueryImpl instance = new TestQuery(mapIds, resourceDefinition);
  Result result = instance.execute();
  verify(resourceDefinition);
  TreeNode<Resource> tree = result.getResultTree();
  Assert.assertEquals(4, tree.getChildren().size());
  TreeNode<Resource> hostNode = tree.getChild("Host:1");
  Assert.assertEquals("Host:1", hostNode.getName());
  Assert.assertEquals(Resource.Type.Host, hostNode.getObject().getType());
  hostNode = tree.getChild("Host:2");
  Assert.assertEquals("Host:2", hostNode.getName());
  Assert.assertEquals(Resource.Type.Host, hostNode.getObject().getType());
  hostNode = tree.getChild("Host:3");
  Assert.assertEquals("Host:3", hostNode.getName());
  Assert.assertEquals(Resource.Type.Host, hostNode.getObject().getType());
  hostNode = tree.getChild("Host:4");
  Assert.assertEquals("Host:4", hostNode.getName());
  Assert.assertEquals(Resource.Type.Host, hostNode.getObject().getType());
}