SpotRateSelectorBuilder { static CurrencyPair parse(String currencyPair) { if (currencyPair.length() == 7) { return CurrencyPair.parse(currencyPair); } else { return CurrencyPair.parse(currencyPair.substring(0, 3) + "/" + currencyPair.substring(3)); } } SpotRateSelectorBuilder(Scenario scenario); SpotRateSelectorBuilder currencyPair(String currencyPair); SpotRateSelectorBuilder currencyPairs(String... currencyPairs); SpotRateManipulatorBuilder apply();  }
@Test public void parseCurrencyPair() { assertEquals(CurrencyPair.of(Currency.AUD, Currency.CAD), SpotRateSelectorBuilder.parse("AUDCAD")); assertEquals(CurrencyPair.of(Currency.AUD, Currency.CAD), SpotRateSelectorBuilder.parse("AUD/CAD")); }