@Test
public void testGetTotalResourceCount() throws Exception {

  Set<Resource> resources = new HashSet<Resource>();
  resources.add(new ResourceImpl(Resource.Type.Stage));
  QueryResponse queryResponse = new QueryResponseImpl(resources);
  Assert.assertEquals(0, queryResponse.getTotalResourceCount());
  queryResponse = new QueryResponseImpl(resources, true, false, 99);
  Assert.assertEquals(99, queryResponse.getTotalResourceCount());
}