### Question:
PendingRequestsService { public UmaPendingRequest readPendingRequest(String id) throws ResourceException { try { return store.read(id); } catch (NotFoundException e) { throw new org.forgerock.json.resource.NotFoundException("Pending request, " + id + ", not found", e); } catch (ServerException e) { throw new InternalServerErrorException("Failed to read pending request, " + id, e); } } @Inject  PendingRequestsService(@DataLayer(ConnectionType.UMA_PENDING_REQUESTS) TokenDataStore store,
            UmaAuditLogger auditLogger, UmaProviderSettingsFactory settingsFactory,
            UmaEmailService emailService,
            PendingRequestEmailTemplate pendingRequestEmailTemplate, UmaPolicyService policyService,
            BaseURLProviderFactory baseURLProviderFactory, CoreWrapper coreWrapper); void createPendingRequest(HttpServletRequest httpRequest, String resourceSetId, String resourceSetName,
            String resourceOwnerId,
            String requestingPartyId, String realm, Set<String> scopes); UmaPendingRequest readPendingRequest(String id); Set<UmaPendingRequest> queryPendingRequests(String resourceOwnerId, String realm); Set<UmaPendingRequest> queryPendingRequests(String resourceSetId, String resourceOwnerId, String realm,
            String requestingPartyId); Promise<Void, ResourceException> approvePendingRequest(Context context, String id,
            JsonValue content, String realm); void denyPendingRequest(String id, String realm);  }### Answer:
@Test public void shouldReadPendingRequest() throws Exception { service.readPendingRequest(PENDING_REQUEST_ID); verify(store).read(PENDING_REQUEST_ID); }