### Question:
CardAccountSpiImpl implements CardAccountSpi { String processAcceptMediaType(String acceptMediaType) { return StringUtils.isBlank(acceptMediaType) || WILDCARD_ACCEPT_HEADER.equals(acceptMediaType) || acceptMediaType.contains(",") ? DEFAULT_ACCEPT_MEDIA_TYPE : acceptMediaType; } CardAccountSpiImpl(AccountRestClient restClient, LedgersSpiAccountMapper accountMapper,
                              AuthRequestInterceptor authRequestInterceptor, AspspConsentDataService tokenService,
                              FeignExceptionReader feignExceptionReader, IbanResolverMockService ibanResolverMockService,
                              OwnerNameService ownerNameService); @Override SpiResponse<List<SpiCardAccountDetails>> requestCardAccountList(@NotNull SpiContextData contextData,
                                                                           @NotNull SpiAccountConsent accountConsent,
                                                                           @NotNull SpiAspspConsentDataProvider aspspConsentDataProvider); @Override SpiResponse<SpiCardAccountDetails> requestCardAccountDetailsForAccount(@NotNull SpiContextData contextData,
                                                                                  @NotNull SpiAccountReference accountReference,
                                                                                  @NotNull SpiAccountConsent accountConsent,
                                                                                  @NotNull SpiAspspConsentDataProvider aspspConsentDataProvider); @Override SpiResponse<SpiCardTransactionReport> requestCardTransactionsForAccount(@NotNull SpiContextData contextData,
                                                                                   @NotNull SpiTransactionReportParameters spiTransactionReportParameters,
                                                                                   @NotNull SpiAccountReference accountReference,
                                                                                   @NotNull SpiAccountConsent accountConsent,
                                                                                   @NotNull SpiAspspConsentDataProvider aspspConsentDataProvider); @Override SpiResponse<List<SpiAccountBalance>> requestCardBalancesForAccount(@NotNull SpiContextData contextData,
                                                                              @NotNull SpiAccountReference accountReference,
                                                                              @NotNull SpiAccountConsent accountConsent,
                                                                              @NotNull SpiAspspConsentDataProvider aspspConsentDataProvider);  }### Answer:
@Test @MockitoSettings(strictness = LENIENT) void processAcceptMediaType() { assertEquals(MediaType.APPLICATION_JSON_VALUE, cardAccountSpi.processAcceptMediaType("")); assertEquals(MediaType.APPLICATION_JSON_VALUE, cardAccountSpi.processAcceptMediaType(null)); assertEquals(MediaType.APPLICATION_JSON_VALUE, cardAccountSpi.processAcceptMediaType(MediaType.ALL_VALUE)); assertEquals(MediaType.APPLICATION_JSON_VALUE, cardAccountSpi.processAcceptMediaType("application/xml, application/json")); assertEquals(MediaType.APPLICATION_JSON_VALUE, cardAccountSpi.processAcceptMediaType(MediaType.APPLICATION_JSON_VALUE)); assertEquals(MediaType.APPLICATION_ATOM_XML_VALUE, cardAccountSpi.processAcceptMediaType(MediaType.APPLICATION_ATOM_XML_VALUE)); }