@Test
public void testExecute__Stack_instance_noSpecifiedProps() throws Exception {

  ResourceDefinition resourceDefinition = new StackResourceDefinition();
  Map<Resource.Type, String> mapIds = new HashMap<Resource.Type, String>();
  mapIds.put(Resource.Type.Stack, "HDP");
  //test
  QueryImpl instance = new TestQuery(mapIds, resourceDefinition);
  Result result = instance.execute();
  TreeNode<Resource> tree = result.getResultTree();
  Assert.assertEquals(1, tree.getChildren().size());
  TreeNode<Resource> stackNode = tree.getChild("Stack:1");
  Assert.assertEquals("Stack:1", stackNode.getName());
  Assert.assertEquals(Resource.Type.Stack, stackNode.getObject().getType());
  Assert.assertEquals(1, stackNode.getChildren().size());
  TreeNode<Resource> versionsNode = stackNode.getChild("versions");
  Assert.assertEquals(3, versionsNode.getChildren().size());
}