### Question:
TokenStorageServiceImpl implements TokenStorageService { @Override public SCAResponseTO fromBytes(byte[] tokenBytes) throws IOException { checkAspspConsentData(tokenBytes); return read(tokenBytes); }  @Override SCAResponseTO fromBytes(byte[] tokenBytes); @Override byte[] toBytes(SCAResponseTO response); @Override T fromBytes(byte[] tokenBytes, Class<T> klass); @Override String toBase64String(SCAResponseTO response);  }### Answer:
@Test void fromBytes_SCAConsentResponseTO_success() throws IOException { byte[] tokenBytes = jsonReader.getStringFromFile("json/config/auth/sca-consent-response.json").getBytes(); SCAResponseTO scaResponseTO = tokenStorageService.fromBytes(tokenBytes); assertNotNull(scaResponseTO); assertTrue(scaResponseTO instanceof SCAConsentResponseTO); }
@Test void fromBytes_objectTypesNull() { assertThrows(IOException.class, () -> tokenStorageService.fromBytes("{}".getBytes())); }
@Test void fromBytes_nullValue_shouldThrowException() { assertThrows(FeignException.class, () -> tokenStorageService.fromBytes(null)); }
@Test void fromBytes_emptyArray_shouldThrowException() { assertThrows(FeignException.class, () -> tokenStorageService.fromBytes(new byte[]{})); }