expect(componentSchema.getKeyPropertyId(Resource.Type.Component)).andReturn("ServiceComponentInfo/component_name").anyTimes();
replay(schemaFactory, serviceSchema, componentSchema);
HashSet<String> serviceProperties = new HashSet<String>();
QueryInfo rootQuery = new QueryInfo(new ServiceResourceDefinition(), serviceProperties);
TreeNode<QueryInfo> queryTree = new TreeNodeImpl<QueryInfo>(null, rootQuery, "Service");
queryTree.addChild(new QueryInfo(new ComponentResourceDefinition(), new HashSet<String>()), "Component");
MinimalRenderer renderer = new MinimalRenderer();
renderer.init(schemaFactory);