RequestStatusImpl implements RequestStatus { @Override public RequestStatusMetaData getStatusMetadata() { return requestStatusMetaData; } 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 testGetRequestStatusMetadata() throws Exception { RequestStatusImpl status = new RequestStatusImpl(null); Assert.assertNull(status.getStatusMetadata()); RequestStatusMetaData metaData = new RequestStatusMetaData() {}; status = new RequestStatusImpl(null, null, metaData); Assert.assertEquals(metaData, status.getStatusMetadata()); }