@Test public void deserializationIsCorrect_withOptionalFields() throws Exception { RefineQuery expected = new RefineQuery(); expected.setQuery("foo"); RefineQuery actual = MAPPER.readValue(fixture("fixtures/refineQueryOptionalFields.json"), RefineQuery.class); assertThat(actual, is(expected)); }
public void setQuery(String query) { this.query = query; }
RefineQuery { public void setQuery(String query) { this.query = query; } }
RefineQuery { public void setQuery(String query) { this.query = query; }  }
RefineQuery { public void setQuery(String query) { this.query = query; }  String getQuery(); void setQuery(String query); Optional<Integer> getLimit(); void setLimit(int limit); Optional<String> getType(); void setType(String type); Optional<String> getType_strict(); void setType_strict(String type_strict); Map<String, Object> getProperties(); void setProperties(Map<String, Object> properties); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
RefineQuery { public void setQuery(String query) { this.query = query; }  String getQuery(); void setQuery(String query); Optional<Integer> getLimit(); void setLimit(int limit); Optional<String> getType(); void setType(String type); Optional<String> getType_strict(); void setType_strict(String type_strict); Map<String, Object> getProperties(); void setProperties(Map<String, Object> properties); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }