class ModifyClientRequestV2 {

  @JsonCreator public static ModifyClientRequestV2 forName(@JsonProperty("name") String name) {
    return new AutoValue_ModifyClientRequestV2(name);
  }

}

class ModifyClientRequestV2Test {

  @Test public void deserializesCorrectly() throws Exception {

    ModifyClientRequestV2 modifyClientRequest = ModifyClientRequestV2.forName("client-name");

    assertThat(
        fromJson(jsonFixture("fixtures/v2/modifyClientRequest.json"), ModifyClientRequestV2.class))
        .isEqualTo(modifyClientRequest);
  }

}