// 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 org.junit.Test;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.NullNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.hubspot.jackson.datatype.protobuf.util.BuiltInProtobufs.HasAllMapKeys;
package com.hubspot.jackson.datatype.protobuf.proto3;





public class AllMapKeysTest {

  @Test
  public void itWritesAllMapKeysWhenPopulated() throws IOException {
    HasAllMapKeys message = hasAllMapKeys();
    String json = camelCase().writeValueAsString(message);
    JsonNode node = camelCase().readTree(json);
    assertThat(node).isEqualTo(hasAllMapKeysNode());
  }

  @Test
  public void itWritesEmptyMapsWhenNotPopulated() throws IOException {
    HasAllMapKeys message = HasAllMapKeys.newBuilder().build();
    String json = camelCase().writeValueAsString(message);
    JsonNode node = camelCase().readTree(json);
    assertThat(node).isEqualTo(hasEmptyMapsNode());
  }

  @Test
  public void itReadsAllMapKeysWhenPopulated() 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/AllMapKeysTest.java
import static com.hubspot.jackson.datatype.protobuf.util.ObjectMapperHelper.camelCase;
import static org.assertj.core.api.Assertions.assertThat;
import java.io.IOException;
import org.junit.Test;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.NullNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.hubspot.jackson.datatype.protobuf.util.BuiltInProtobufs.HasAllMapKeys;

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





public class AllMapKeysTest {

  @Test
  public void itWritesAllMapKeysWhenPopulated() throws IOException {
    HasAllMapKeys message = hasAllMapKeys();
    String json = camelCase().writeValueAsString(message);
    JsonNode node = camelCase().readTree(json);
    assertThat(node).isEqualTo(hasAllMapKeysNode());
  }

  @Test
  public void itWritesEmptyMapsWhenNotPopulated() throws IOException {
    HasAllMapKeys message = HasAllMapKeys.newBuilder().build();
    String json = camelCase().writeValueAsString(message);
    JsonNode node = camelCase().readTree(json);
    assertThat(node).isEqualTo(hasEmptyMapsNode());
  }

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