expect(schema.getKeyPropertyId(Resource.Type.Component)).andReturn("ServiceComponentInfo/component_name").anyTimes();
expect(schema.getKeyPropertyId(Resource.Type.Service)).andReturn("ServiceComponentInfo/service_name").anyTimes();
replay(schemaFactory, schema);
QueryInfo rootQuery = new QueryInfo(new ServiceResourceDefinition(), new HashSet<String>());
TreeNode<QueryInfo> queryTree = new TreeNodeImpl<QueryInfo>(null, rootQuery, "Service");
DefaultRenderer renderer = new DefaultRenderer();
renderer.init(schemaFactory);
TreeNode<Set<String>> propertyTree = renderer.finalizeProperties(queryTree, false);