// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
BitstampTransaction[] transactions = mapper.readValue(is, BitstampTransaction[].class);
Trade trade = BitstampAdapters.adaptTrade(transactions[3], CurrencyPair.BTC_USD, 1000);
// verify all fields filled
assertThat(trade.getPrice().toString()).isEqualTo("13.14");
assertThat(trade.getType()).isNull();
assertThat(trade.getTradableAmount()).isEqualTo(new BigDecimal("23.66362253"));
assertThat(trade.getCurrencyPair()).isEqualTo(CurrencyPair.BTC_USD);
}