// 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 java.io.IOException;
import java.util.Map;
import org.junit.Test;
import com.fasterxml.jackson.databind.JsonNode;
import com.google.protobuf.ListValue;
import com.google.protobuf.NullValue;
import com.google.protobuf.Struct;
import com.google.protobuf.Value;
import com.hubspot.jackson.datatype.protobuf.util.BuiltInProtobufs.HasStruct;
package com.hubspot.jackson.datatype.protobuf.builtin;





public class StructTest {

  @Test
  public void itWritesAllStructValueTypes() throws IOException {
    Value nestedValue = Value.newBuilder().setStringValue("nested").build();
    Struct nestedStruct = Struct.newBuilder().putFields("key", nestedValue).build();
    ListValue list = ListValue.newBuilder().addValues(nestedValue).build();
    Struct struct = Struct
            .newBuilder()
            .putFields("null", Value.newBuilder().setNullValue(NullValue.NULL_VALUE).build())
            .putFields("number", Value.newBuilder().setNumberValue(1.5d).build())
            .putFields("string", Value.newBuilder().setStringValue("test").build())
            .putFields("boolean", Value.newBuilder().setBoolValue(true).build())
            .putFields("struct", Value.newBuilder().setStructValue(nestedStruct).build())
            .putFields("list", Value.newBuilder().setListValue(list).build())
            .build();
    HasStruct message = HasStruct
            .newBuilder()
            .setStruct(struct)
            .build();
// 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/builtin/StructTest.java
import static com.hubspot.jackson.datatype.protobuf.util.ObjectMapperHelper.camelCase;
import static org.assertj.core.api.Assertions.assertThat;
import java.io.IOException;
import java.util.Map;
import org.junit.Test;
import com.fasterxml.jackson.databind.JsonNode;
import com.google.protobuf.ListValue;
import com.google.protobuf.NullValue;
import com.google.protobuf.Struct;
import com.google.protobuf.Value;
import com.hubspot.jackson.datatype.protobuf.util.BuiltInProtobufs.HasStruct;

package com.hubspot.jackson.datatype.protobuf.builtin;





public class StructTest {

  @Test
  public void itWritesAllStructValueTypes() throws IOException {
    Value nestedValue = Value.newBuilder().setStringValue("nested").build();
    Struct nestedStruct = Struct.newBuilder().putFields("key", nestedValue).build();
    ListValue list = ListValue.newBuilder().addValues(nestedValue).build();
    Struct struct = Struct
            .newBuilder()
            .putFields("null", Value.newBuilder().setNullValue(NullValue.NULL_VALUE).build())
            .putFields("number", Value.newBuilder().setNumberValue(1.5d).build())
            .putFields("string", Value.newBuilder().setStringValue("test").build())
            .putFields("boolean", Value.newBuilder().setBoolValue(true).build())
            .putFields("struct", Value.newBuilder().setStructValue(nestedStruct).build())
            .putFields("list", Value.newBuilder().setListValue(list).build())
            .build();
    HasStruct message = HasStruct
            .newBuilder()
            .setStruct(struct)
            .build();
    String json = camelCase().writeValueAsString(message);