// Read in the JSON from the example resources
InputStream is = MarketDataTest.class.getResourceAsStream("/Example_TickerData.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
BTCCentralTicker btcCentralTicker = mapper.readValue(is, BTCCentralTicker.class);
assertEquals(btcCentralTicker.getCurrency(), "EUR");
assertEquals(btcCentralTicker.getAsk(), new BigDecimal("20.4"));
assertEquals(btcCentralTicker.getBid(), new BigDecimal("20.1"));
assertEquals(btcCentralTicker.getHigh(), new BigDecimal("20.74"));
assertEquals(btcCentralTicker.getLow(), new BigDecimal("20.2"));
assertEquals(btcCentralTicker.getPrice(), new BigDecimal("20.2"));
assertEquals(btcCentralTicker.getVolume(), new BigDecimal("148.80193218"));
}