@Test
public void getMultipleSecretSeriesByName() {

  int before = tableSize();
  long now = OffsetDateTime.now().toEpochSecond();
  ApiDate nowDate = new ApiDate(now);
  long id = secretSeriesDAO.createSecretSeries("newSecretSeries", "creator", "desc", null,
          ImmutableMap.of("foo", "bar"), now);
  long contentId = secretContentDAO.createSecretContent(id, "blah",
          "checksum", "creator", null, 0, now);
  secretSeriesDAO.setCurrentVersion(id, contentId, "creator", now);
  long id2 = secretSeriesDAO.createSecretSeries("newSecretSeries2", "creator", "desc", null,
          ImmutableMap.of("f00", "b4r"), now);
  long contentId2 = secretContentDAO.createSecretContent(id2, "blah",
          "checksum", "creator", null, 0, now);
  secretSeriesDAO.setCurrentVersion(id2, contentId2, "creator", now);
  assertThat(tableSize()).isEqualTo(before + 2);
  SecretSeries expected1 = SecretSeries.of(id, "newSecretSeries", "desc", nowDate, "creator", nowDate,
          "creator", null, ImmutableMap.of("foo", "bar"), contentId);
  SecretSeries expected2 = SecretSeries.of(id2, "newSecretSeries2", "desc", nowDate, "creator", nowDate,
          "creator", null, ImmutableMap.of("f00", "b4r"), contentId2);
  List<SecretSeries> actual = secretSeriesDAO.getMultipleSecretSeriesByName(List.of("newSecretSeries", "newSecretSeries2"));
  assertThat(actual).contains(expected1);
  assertThat(actual).contains(expected2);
}