}
@Test
public void testFinalizeProperties__collection_subResource_noProperties() {
SchemaFactory schemaFactory = createNiceMock(SchemaFactory.class);
Schema serviceSchema = createNiceMock(Schema.class);
Schema componentSchema = createNiceMock(Schema.class);
// schema expectations
expect(schemaFactory.getSchema(Resource.Type.Service)).andReturn(serviceSchema).anyTimes();
expect(serviceSchema.getKeyPropertyId(Resource.Type.Service)).andReturn("ServiceInfo/service_name").anyTimes();
expect(schemaFactory.getSchema(Resource.Type.Component)).andReturn(componentSchema).anyTimes();
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);