public void testTradeHistoryMultiPair() throws JsonParseException, JsonMappingException, IOException {
final InputStream is = PoloniexUserTrade.class.getResourceAsStream("/tradedata/trade-history-multi-pair.json");
final ObjectMapper mapper = new ObjectMapper();
final JavaType stringType = mapper.getTypeFactory().constructType(String.class, String.class);
final JavaType tradeArray = mapper.getTypeFactory().constructArrayType(PoloniexUserTrade.class);
final JavaType multiPairTradeType = mapper.getTypeFactory().constructMapType(HashMap.class, stringType, tradeArray);
final Map<String, PoloniexUserTrade[]> tradeHistory = mapper.readValue(is, multiPairTradeType);
assertThat(tradeHistory).hasSize(2);
assertThat(tradeHistory).containsKey("BTC_LTC");