// Read in the JSON from the example resources
InputStream is = BitfinexAccountInfoJSONTest.class.getResourceAsStream("/v1/account/example-account-info-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
BitfinexBalancesResponse readValue = mapper.readValue(is, BitfinexBalancesResponse.class);
assertEquals(readValue.getAmount().toString(), new BigDecimal("8.53524686").toString());
}