### Question:
PaymentConfigurationCurrencyFilter implements PaymentConfigurationFilter { @Override public boolean isValid(WirecardPaymentConfigurationModel configuration, AbstractOrderModel order) { boolean valid = true; if (configuration != null && order != null) { Set<CurrencyModel> currencies = configuration.getCurrencies(); if (CollectionUtils.isNotEmpty(currencies)) { CurrencyModel currency = order.getCurrency(); valid = currencies.contains(currency); } } return valid; }  @Override boolean isValid(WirecardPaymentConfigurationModel configuration, AbstractOrderModel order);  }### Answer:
@Test public void test() { assertEquals(expected, paymentConfigurationCurrencyFilter.isValid(configuration, cart)); }