// Read in the JSON from the example resources
InputStream is = AddressJSONTest.class.getResourceAsStream("/address.json");
ObjectMapper mapper = new ObjectMapper();
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
BitcoinAddress address = mapper.readValue(is, BitcoinAddress.class);
// Verify that the example data was unmarshalled correctly
assertThat(address.getNumTransactions()).isEqualTo(59);
assertThat(address.getFinalBalance()).isEqualTo(78399012);
assertThat(address.getFinalBalanceDecimal()).isEqualTo(new BigDecimal(".78399012"));
assertThat(address.getAddress()).isEqualTo("17dQktcAmU4urXz7tGk2sbuiCqykm3WLs6");
}