### Question:
FxRateConfig implements ImmutableBean { public Optional<QuoteId> getObservableRateKey(CurrencyPair currencyPair) { QuoteId quoteId = observableRates.get(currencyPair.toConventional()); return Optional.ofNullable(quoteId); } private  FxRateConfig(
      Map<CurrencyPair, QuoteId> observableRates); Optional<QuoteId> getObservableRateKey(CurrencyPair currencyPair); static FxRateConfig of(Map<CurrencyPair, QuoteId> quotesMap); static FxRateConfig.Meta meta(); static FxRateConfig.Builder builder(); @Override FxRateConfig.Meta metaBean(); Builder toBuilder(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void containsPair() { assertThat(config().getObservableRateKey(CURRENCY_PAIR)).hasValue(QUOTE_KEY); }
@Test public void containsInversePair() { assertThat(config().getObservableRateKey(CURRENCY_PAIR.inverse())).hasValue(QUOTE_KEY); }