// Path: src/test/java/com/hubspot/jackson/datatype/protobuf/util/ObjectMapperHelper.java
// public static ObjectMapper camelCase() {
//   return DEFAULT;
// }


import static com.hubspot.jackson.datatype.protobuf.util.ObjectMapperHelper.camelCase;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.fail;
import java.io.IOException;
import java.util.LinkedHashMap;
import java.util.Map;
import org.junit.Test;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.NullNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.google.protobuf.Duration;
import com.hubspot.jackson.datatype.protobuf.util.BuiltInProtobufs.HasOneof;
import com.hubspot.jackson.datatype.protobuf.util.TestProtobuf.AllFields;
import com.hubspot.jackson.datatype.protobuf.util.TestProtobuf3.AllFieldsProto3;
import com.hubspot.jackson.datatype.protobuf.util.TestProtobuf3.EnumProto3;
  private static final HasOneof STRING = HasOneof.newBuilder().setString("test").build();
  private static final HasOneof DEFAULT_DURATION = HasOneof
          .newBuilder()
          .setDuration(Duration.getDefaultInstance())
          .build();
  private static final HasOneof DURATION = HasOneof
          .newBuilder()
          .setDuration(Duration.newBuilder().setSeconds(30).build())
          .build();
  private static final HasOneof DEFAULT_ENUM = HasOneof.newBuilder().setEnum(EnumProto3.DEFAULT).build();
  private static final HasOneof ENUM = HasOneof.newBuilder().setEnum(EnumProto3.FIRST).build();
  private static final HasOneof DEFAULT_PROTO2_MESSAGE = HasOneof
          .newBuilder()
          .setProto2Message(AllFields.getDefaultInstance())
          .build();
  private static final HasOneof PROTO2_MESSAGE = HasOneof
          .newBuilder()
          .setProto2Message(AllFields.newBuilder().setString("proto2").build())
          .build();
  private static final HasOneof DEFAULT_PROTO3_MESSAGE = HasOneof
          .newBuilder()
          .setProto3Message(AllFieldsProto3.getDefaultInstance())
          .build();
  private static final HasOneof PROTO3_MESSAGE = HasOneof
          .newBuilder()
          .setProto3Message(AllFieldsProto3.newBuilder().setString("proto3").build())
          .build();

  @Test
  public void itOmitsOneofWhenNotSetWithDefaultInclusion() throws IOException {
// Path: src/test/java/com/hubspot/jackson/datatype/protobuf/util/ObjectMapperHelper.java
// public static ObjectMapper camelCase() {
//   return DEFAULT;
// }


// Path: src/test/java/com/hubspot/jackson/datatype/protobuf/proto3/OneofTest.java
import static com.hubspot.jackson.datatype.protobuf.util.ObjectMapperHelper.camelCase;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.fail;
import java.io.IOException;
import java.util.LinkedHashMap;
import java.util.Map;
import org.junit.Test;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.NullNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.google.protobuf.Duration;
import com.hubspot.jackson.datatype.protobuf.util.BuiltInProtobufs.HasOneof;
import com.hubspot.jackson.datatype.protobuf.util.TestProtobuf.AllFields;
import com.hubspot.jackson.datatype.protobuf.util.TestProtobuf3.AllFieldsProto3;
import com.hubspot.jackson.datatype.protobuf.util.TestProtobuf3.EnumProto3;

  private static final HasOneof STRING = HasOneof.newBuilder().setString("test").build();
  private static final HasOneof DEFAULT_DURATION = HasOneof
          .newBuilder()
          .setDuration(Duration.getDefaultInstance())
          .build();
  private static final HasOneof DURATION = HasOneof
          .newBuilder()
          .setDuration(Duration.newBuilder().setSeconds(30).build())
          .build();
  private static final HasOneof DEFAULT_ENUM = HasOneof.newBuilder().setEnum(EnumProto3.DEFAULT).build();
  private static final HasOneof ENUM = HasOneof.newBuilder().setEnum(EnumProto3.FIRST).build();
  private static final HasOneof DEFAULT_PROTO2_MESSAGE = HasOneof
          .newBuilder()
          .setProto2Message(AllFields.getDefaultInstance())
          .build();
  private static final HasOneof PROTO2_MESSAGE = HasOneof
          .newBuilder()
          .setProto2Message(AllFields.newBuilder().setString("proto2").build())
          .build();
  private static final HasOneof DEFAULT_PROTO3_MESSAGE = HasOneof
          .newBuilder()
          .setProto3Message(AllFieldsProto3.getDefaultInstance())
          .build();
  private static final HasOneof PROTO3_MESSAGE = HasOneof
          .newBuilder()
          .setProto3Message(AllFieldsProto3.newBuilder().setString("proto3").build())
          .build();

  @Test
  public void itOmitsOneofWhenNotSetWithDefaultInclusion() throws IOException {
    String json = camelCase().writeValueAsString(EMPTY);