InputStream is = HitbtcMarketDataJsonTest.class.getResourceAsStream("/marketdata/example-ticker-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
HitbtcTicker ticker = mapper.readValue(is, HitbtcTicker.class);
assertThat(ticker.getAsk()).isEqualTo("609.58");
assertThat(ticker.getBid()).isEqualTo("608.63");
assertThat(ticker.getLast()).isEqualTo("609.24");
assertThat(ticker.getHigh()).isEqualTo("621.81");
assertThat(ticker.getLow()).isEqualTo("563.4");
assertThat(ticker.getVolume()).isEqualTo("1232.17");
assertThat(ticker.getTimetamp()).isEqualTo(1401498463370L);
}