// Read in the JSON from the example resources
InputStream is = KrakenSpreadsJSONTest.class.getResourceAsStream("/marketdata/example-spreads-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
KrakenSpreadsResult krakenResult = mapper.readValue(is, KrakenSpreadsResult.class);
KrakenSpreads spreads = krakenResult.getResult();
assertThat(spreads.getLast()).isEqualTo(1391837200);
KrakenSpread spread = spreads.getSpreads().get(0);
assertThat(spread.getAsk()).isEqualTo("720.00000");
assertThat(spread.getBid()).isEqualTo("709.17169");