@Test public void formsCorrectlyFromSecretSeriesAndContent() throws Exception {

  SecretSeries series = SecretSeries.of(1, "secret-name", "secret-description",
      ApiDate.parse("2013-03-28T21:23:04.159Z"), "creator-user",
      ApiDate.parse("2014-03-28T21:23:04.159Z"), "updater-user", "text/plain", null,
      1L);
  SecretContent content = SecretContent.of(1, 1, "YXNkZGFz", "checksum",
      ApiDate.parse("2014-03-28T21:23:04.159Z"), "updater-user",
      ApiDate.parse("2014-03-28T21:23:04.159Z"), "updater-user",
      ImmutableMap.of("owner", "root"), 1136214245);
  SecretSeriesAndContent seriesAndContent = SecretSeriesAndContent.of(series, content);
  SecretDetailResponseV2 secretDetailResponse = SecretDetailResponseV2.builder()
      .seriesAndContent(seriesAndContent)
      .build();
  assertThat(asJson(secretDetailResponse))
      .isEqualTo(jsonFixture("fixtures/v2/secretDetailResponse.json"));
}