final JsonNode cleanedJSON = ((ObjectNode) jsonNode).without(DMPPersistenceUtil.RECORD_ID);
@Test public void itWritesOneofWhenSetToProto3MessageWithDefaultInclusion() throws IOException { String json = camelCase().writeValueAsString(PROTO3_MESSAGE); JsonNode node = camelCase().readTree(json).get("proto3Message"); assertThat(node).isEqualTo(nullProto3Message().put("string", "proto3").without("nested")); }
@Test public void itWritesOneofWhenSetToDefaultProto3MessageWithDefaultInclusion() throws IOException { String json = camelCase().writeValueAsString(DEFAULT_PROTO3_MESSAGE); JsonNode node = camelCase().readTree(json).get("proto3Message"); assertThat(node).isEqualTo(nullProto3Message().without("nested")); }