@Test public void testDeserialization() throws Exception { final MessageTemplate template = readObjectFromResource("/notification/template.json", MessageTemplate.class); assertThat(template.getExpression(), is("test message")); }
public String getExpression() { return expression; }
MessageTemplate { public String getExpression() { return expression; } }
MessageTemplate { public String getExpression() { return expression; } @JsonCreator  MessageTemplate(@JsonProperty("expression") final String expression); }
MessageTemplate { public String getExpression() { return expression; } @JsonCreator  MessageTemplate(@JsonProperty("expression") final String expression); String getExpression(); @Override String toString(); }
MessageTemplate { public String getExpression() { return expression; } @JsonCreator  MessageTemplate(@JsonProperty("expression") final String expression); String getExpression(); @Override String toString();  }