### Question:
SpiAspspConsentDataProviderImpl implements SpiAspspConsentDataProvider { @Override @NotNull public byte[] loadAspspConsentData() { byte[] readData = aspspDataService.readAspspConsentData(encryptedConsentId) .map(AspspConsentData::getAspspConsentData) .orElse(EMPTY_BYTE_ARRAY); lastKnownData = readData; return readData; }  @Override @NotNull byte[] loadAspspConsentData(); @Override void updateAspspConsentData(@Nullable byte[] aspspConsentData); @Override void clearAspspConsentData();  }### Answer:
@Test void loadDataCallsAspspDataService() { when(aspspDataService.readAspspConsentData(anyString())) .thenReturn(Optional.of(SOME_CONSENT_DATA)); byte[] readData = spiAspspConsentDataProvider.loadAspspConsentData(); assertArrayEquals(SOME_DATA, readData); verify(aspspDataService).readAspspConsentData(SOME_CONSENT_ID); }