@Test public void testJsonEncode() { assertJsonEncode(createPerson("alice@example.com", "Alice"), ImmutableMap.of( "name", "Alice", "email", "alice@example.com" )); }
static Person createPerson(String email, String name) { return new AutoValue_Person(email, name); }
Person { static Person createPerson(String email, String name) { return new AutoValue_Person(email, name); } }
Person { static Person createPerson(String email, String name) { return new AutoValue_Person(email, name); }  }
Person { static Person createPerson(String email, String name) { return new AutoValue_Person(email, name); }  @JsonProperty abstract String getEmail(); @JsonProperty abstract String getName(); }
Person { static Person createPerson(String email, String name) { return new AutoValue_Person(email, name); }  @JsonProperty abstract String getEmail(); @JsonProperty abstract String getName();  }