public void readPairs() throws IOException {
CurrencyPairsConfigDocumentLoader loader = new CurrencyPairsConfigDocumentLoader(null, null, null);
String eurUsdStr = "EUR/USD";
String gbpUsdStr = "GBP/USD";
String usdCadStr = "USD/CAD";
CurrencyPair eurUsd = CurrencyPair.parse(eurUsdStr);
CurrencyPair gbpUsd = CurrencyPair.parse(gbpUsdStr);
CurrencyPair usdCad = CurrencyPair.parse(usdCadStr);
BufferedReader reader = new BufferedReader(new StringReader(eurUsdStr + "\n" + gbpUsdStr + "\n" + usdCadStr));
ImmutableSet<CurrencyPair> pairs = ImmutableSet.of(eurUsd, gbpUsd, usdCad);
AssertJUnit.assertEquals(pairs, loader.readPairs(reader));
}