// Read in the JSON from the example resources
InputStream is = BitcurexAccountJSONTest.class.getResourceAsStream("/marketdata/example-funds-pln-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
BitcurexFunds bitcurexFunds = mapper.readValue(is, BitcurexFunds.class);
// Verify that the example data was unmarshalled correctly
assertThat(bitcurexFunds.getAddress().equals("1ABcdEfgKEqBPMQ6D2ocuYNJNsXgKPcfV7"));
assertThat(bitcurexFunds.getBtcs().compareTo(new BigDecimal("2.59033845")) == 0);
assertThat(bitcurexFunds.getPlns().compareTo(new BigDecimal("6160.06838790")) == 0);
}