ModifyClientRequestV2 { @JsonCreator public static ModifyClientRequestV2 forName(@JsonProperty("name") String name) { return new AutoValue_ModifyClientRequestV2(name); }  @JsonCreator static ModifyClientRequestV2 forName(@JsonProperty("name") String name); @JsonProperty("name") abstract String name();  }
@Test public void deserializesCorrectly() throws Exception { ModifyClientRequestV2 modifyClientRequest = ModifyClientRequestV2.forName("client-name"); assertThat( fromJson(jsonFixture("fixtures/v2/modifyClientRequest.json"), ModifyClientRequestV2.class)) .isEqualTo(modifyClientRequest); }