@Test
public void testGetResource() {

  ResourceInstance resource = createNiceMock(ResourceInstance.class);
  Request request = getTestRequest(null, null, null, null, null, null, resource);
  assertSame(resource, request.getResource());
}