// Read in the JSON from the example resources
InputStream is = CryptonitAdapterTest.class.getResourceAsStream("/marketdata/example-trading-pairs.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
CollectionLikeType nestedListType = mapper.getTypeFactory().constructCollectionType(List.class, mapper.getTypeFactory().constructCollectionType(List.class, String.class));
List<List<String>> tradingPairs = mapper.readValue(is, nestedListType);
Collection<CurrencyPair> currencyPairs = CryptonitAdapters.adaptCurrencyPairs(tradingPairs);
assertThat(currencyPairs).hasSize(3);