SanitizedSecretWithGroups { @JsonCreator public static SanitizedSecretWithGroups of( @JsonProperty("secret") SanitizedSecret secret, @JsonProperty("groups") List<Group> groups) { return new AutoValue_SanitizedSecretWithGroups(secret, groups); }  @JsonCreator static SanitizedSecretWithGroups of(
      @JsonProperty("secret") SanitizedSecret secret,
      @JsonProperty("groups") List<Group> groups); static SanitizedSecretWithGroups of(long id, String name, List<Group> groups); static SanitizedSecretWithGroups fromSecretSeriesAndContentAndGroups(SecretSeriesAndContent seriesAndContent, List<Group> groups); static SanitizedSecretWithGroups fromSecret(Secret secret, List<Group> groups); @JsonProperty abstract SanitizedSecret secret(); @JsonProperty abstract List<Group> groups(); static String displayName(SanitizedSecretWithGroups sanitizedSecretWithGroups);  }
@Test public void serializesCorrectly() throws Exception { SanitizedSecretWithGroups sanitizedSecretWithGroups = SanitizedSecretWithGroups.of(sanitizedSecret, groups); assertThat(asJson(sanitizedSecretWithGroups)) .isEqualTo(jsonFixture("fixtures/sanitizedSecretWithGroups.json")); }