public class CoinsetterAdaptersTest {
@Test
public void testAdaptTicker() throws JsonParseException, JsonMappingException, IOException {
CoinsetterTicker coinsetterTicker = ObjectMapperHelper.readValue(getClass().getResource("dto/marketdata/ticker.json"), CoinsetterTicker.class);
Ticker ticker = CoinsetterAdapters.adaptTicker(coinsetterTicker);
assertEquals(CurrencyPair.BTC_USD, ticker.getCurrencyPair());
assertEquals(1392947181242L, ticker.getTimestamp().getTime());
assertEquals(new BigDecimal("10.0"), ticker.getBid());
assertEquals(new BigDecimal("12.0"), ticker.getAsk());