### Question:
QueryInfo { public ResourceDefinition getResource() { return m_resource; } QueryInfo(ResourceDefinition resource, Set<String> properties); ResourceDefinition getResource(); Set<String> getProperties();  }### Answer:
@Test public void testGetResource() { ResourceDefinition resource = new ClusterResourceDefinition(); QueryInfo info = new QueryInfo(resource, new HashSet<>()); assertSame(resource, info.getResource()); }