// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
JavaType type = mapper.getTypeFactory().constructParametricType(VosResponse.class, VosTrade[].class);
VosResponse<VosTrade[]> vosTrades = mapper.readValue(is, type);
Trades trades = VaultOfSatoshiAdapters.adaptTrades(vosTrades.getData(), CurrencyPair.BTC_USD);
assertThat(trades.getTrades().size()).isEqualTo(2);
// Verify all fields filled
assertThat(trades.getTrades().get(0).getPrice()).isEqualTo("641.17165850");
assertThat(trades.getTrades().get(0).getTradableAmount()).isEqualTo(".25000000");
assertThat(trades.getTrades().get(0).getCurrencyPair().baseSymbol == "BTC");
assertThat(trades.getlastID()).isEqualTo(294649);
assertThat(DateUtils.toUTCString(trades.getTrades().get(0).getTimestamp())).isEqualTo("2014-06-21 01:06:53 GMT");
}