CoinbaseProException extends HttpStatusExceptionSupport { @Override public String getMessage() { return message; } CoinbaseProException(@JsonProperty("message") String message); @Override String getMessage();  }
@Test public void unmarshalTest() throws IOException { JacksonObjectMapperFactory factory = new DefaultJacksonObjectMapperFactory(); ObjectMapper mapper = factory.createObjectMapper(); InputStream is = getClass() .getResourceAsStream( "/org/knowm/xchange/coinbasepro/dto/trade/example-order-entry-reject.json"); CoinbaseProException exception = mapper.readValue(is, CoinbaseProException.class); assertThat(exception.getMessage()).startsWith("Insufficient funds"); }