### Question:
AccountHelperService { public SpiContextData getSpiContextData() { PsuIdData psuIdData = requestProviderService.getPsuIdData(); log.info("Corresponding PSU-ID {} was provided from request.", psuIdData); return spiContextDataProvider.provideWithPsuIdData(psuIdData); }  SpiAccountReference findAccountReference(List<AccountReference> references, String resourceId); SpiContextData getSpiContextData();  }### Answer:
@Test void getSpiContextData() { when(requestProviderService.getPsuIdData()) .thenReturn(PSU_ID_DATA); when(spiContextDataProvider.provideWithPsuIdData(PSU_ID_DATA)) .thenReturn(SPI_CONTEXT_DATA); SpiContextData actual = accountHelperService.getSpiContextData(); assertEquals(SPI_CONTEXT_DATA, actual); }