EntityGroupInfo { public void setConfiguration(T configuration) { this.configuration = configuration; } EntityGroupInfo();  EntityGroupInfo(T configuration);  EntityGroupInfo(T configuration, List<R> runtimeInfo); T getConfiguration(); void setConfiguration(T configuration); List<R> getRuntimeInfo(); void setRuntimeInfo(List<R> runtimeInfo); @JsonIgnore Links getLinks(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void jsonTest() throws Exception { EntityGroupInfo<Region, RuntimeRegionInfo> result = new EntityGroupInfo<>(); Region region = new Region(); region.setName("test"); result.setConfiguration(region); String regionJson = mapper.writeValueAsString(region); String json = mapper.writeValueAsString(result); assertThat(regionJson).doesNotContain("links"); System.out.println(json); assertThat(json).doesNotContain("links"); mapper.readValue(json, EntityGroupInfo.class); }