ErrorOrderBookMessage extends FeedMessage { public String getMessage() { return message; } ErrorOrderBookMessage();  ErrorOrderBookMessage(String message); String getMessage(); void setMessage(String message);  }
@Test void shouldDeserialiseAllFieldsForErrorOrderBookMessage() throws JsonProcessingException { String json = "{ \"type\": \"error\", \"message\": \"error message\" }"; ErrorOrderBookMessage errorMessage = objectMapper.readValue(json, ErrorOrderBookMessage.class); assertEquals("error", errorMessage.getType()); assertEquals("error message", errorMessage.getMessage()); }