### Question:
PendingRequestResource implements CollectionResourceProvider { @Override public Promise<ResourceResponse, ResourceException> readInstance(Context context, String resourceId, ReadRequest request) { try { return newResultPromise(newResource(service.readPendingRequest(resourceId))); } catch (ResourceException e) { return e.asPromise(); } } @Inject  PendingRequestResource(PendingRequestsService service,
            ContextHelper contextHelper); @Override Promise<ActionResponse, ResourceException> actionCollection(Context context, ActionRequest request); @Override Promise<ActionResponse, ResourceException> actionInstance(Context context, String resourceId,
            ActionRequest request); @Override Promise<QueryResponse, ResourceException> queryCollection(Context context, QueryRequest request,
            QueryResourceHandler handler); @Override Promise<ResourceResponse, ResourceException> readInstance(Context context, String resourceId,
            ReadRequest request); @Override Promise<ResourceResponse, ResourceException> createInstance(Context context, CreateRequest request); @Override Promise<ResourceResponse, ResourceException> deleteInstance(Context context, String resourceId,
            DeleteRequest request); @Override Promise<ResourceResponse, ResourceException> patchInstance(Context context, String resourceId,
            PatchRequest request); @Override Promise<ResourceResponse, ResourceException> updateInstance(Context context, String resourceId,
            UpdateRequest request);  }### Answer:
@SuppressWarnings("unchecked") @Test public void shouldReadPendingRequest() throws Exception { Context context = mock(Context.class); ReadRequest request = Requests.newReadRequest(""); String id = mockPendingRequest(); Promise<ResourceResponse, ResourceException> promise = resource.readInstance(context, id, request); assertThat(promise).succeeded(); }