ParibuTicker { public BTC_TL getBtcTL() { return btcTL; } ParibuTicker(@JsonProperty("BTC_TL") BTC_TL btcTL); BTC_TL getBtcTL(); @Override String toString();  }
@Test public void testUnmarshal() throws IOException { InputStream is = ParibuTickerTest.class.getResourceAsStream( "/org/knowm/xchange/paribu/dto/marketdata/example-ticker-data.json"); ObjectMapper mapper = new ObjectMapper(); ParibuTicker paribuTicker = mapper.readValue(is, ParibuTicker.class); BTC_TL btcTL = paribuTicker.getBtcTL(); assertThat(btcTL.getLast()).isEqualTo(new BigDecimal("41400")); assertThat(btcTL.getLowestAsk()).isEqualTo(new BigDecimal("41450.89")); assertThat(btcTL.getHighestBid()).isEqualTo(new BigDecimal("41400")); assertThat(btcTL.getPercentChange()).isEqualTo(new BigDecimal("9.81")); assertThat(btcTL.getVolume()).isEqualTo(new BigDecimal("2370.89")); assertThat(btcTL.getHigh24hr()).isEqualTo(new BigDecimal("42000")); assertThat(btcTL.getLow24hr()).isEqualTo(new BigDecimal("37650")); }