### Question:
RequestProviderService { public String getPsuIpAddress() { return getHeader(Xs2aHeaderConstant.PSU_IP_ADDRESS); }  Optional<Boolean> resolveTppRedirectPreferred(); RequestData getRequestData(); PsuIdData getPsuIdData(); @NotNull UUID getInternalRequestId(); @Nullable String getInstanceId(); String getInternalRequestIdString(); UUID getRequestId(); String getRequestIdString(); boolean isRequestFromPsu(); boolean isRequestFromTPP(); String getPsuIpAddress(); String getTppRedirectURI(); String getTppNokRedirectURI(); String getOAuth2Token(); String getTppRolesAllowedHeader(); @NotNull String getAcceptHeader(); String getContentTypeHeader(); String getEncodedTppQwacCert(); String getTppBrandLoggingInformationHeader(); Boolean getTppRejectionNoFundsPreferred();  }### Answer:
@Test void getPsuIpAddress() { when(httpServletRequest.getHeader(Xs2aHeaderConstant.PSU_IP_ADDRESS)).thenReturn(HEADERS.get(Xs2aHeaderConstant.PSU_IP_ADDRESS)); String psuIpAddress = requestProviderService.getPsuIpAddress(); assertEquals(HEADERS.get(Xs2aHeaderConstant.PSU_IP_ADDRESS), psuIpAddress); assertTrue(requestProviderService.isRequestFromPsu()); assertFalse(requestProviderService.isRequestFromTPP()); }