RequestStatusImpl implements RequestStatus { @Override public Resource getRequestResource() { return requestResource; } RequestStatusImpl(Resource requestResource);  RequestStatusImpl(Resource requestResource, Set<Resource> associatedResources);  RequestStatusImpl(Resource requestResource, Set<Resource> associatedResources, RequestStatusMetaData requestStatusMetaData); @Override Set<Resource> getAssociatedResources(); @Override Resource getRequestResource(); @Override Status getStatus(); @Override RequestStatusMetaData getStatusMetadata();  }
@Test public void testGetRequestResource() throws Exception { RequestStatusImpl status = new RequestStatusImpl(null); Assert.assertNull(status.getRequestResource()); Resource requestResource = new ResourceImpl(Resource.Type.Request); status = new RequestStatusImpl(requestResource); Assert.assertEquals(requestResource, status.getRequestResource()); }