BTCTradeTicker { public BTCTradeTicker( @JsonProperty("high") BigDecimal high, @JsonProperty("low") BigDecimal low, @JsonProperty("buy") BigDecimal buy, @JsonProperty("sell") BigDecimal sell, @JsonProperty("last") BigDecimal last, @JsonProperty("vol") BigDecimal vol) { this.high = high; this.low = low; this.buy = buy; this.sell = sell; this.last = last; this.vol = vol; } BTCTradeTicker(
      @JsonProperty("high") BigDecimal high,
      @JsonProperty("low") BigDecimal low,
      @JsonProperty("buy") BigDecimal buy,
      @JsonProperty("sell") BigDecimal sell,
      @JsonProperty("last") BigDecimal last,
      @JsonProperty("vol") BigDecimal vol); BigDecimal getHigh(); BigDecimal getLow(); BigDecimal getBuy(); BigDecimal getSell(); BigDecimal getLast(); BigDecimal getVol();  }
@Test public void testBTCTradeTicker() throws IOException { BTCTradeTicker ticker = mapper.readValue(getClass().getResource("ticker.json"), BTCTradeTicker.class); assertEquals(new BigDecimal("3760"), ticker.getHigh()); assertEquals(new BigDecimal("3658"), ticker.getLow()); assertEquals(new BigDecimal("3752"), ticker.getBuy()); assertEquals(new BigDecimal("3758"), ticker.getSell()); assertEquals(new BigDecimal("3757"), ticker.getLast()); assertEquals(new BigDecimal("11009.76"), ticker.getVol()); }