@Test public void deleteSecretSeriesByName() {

  long now = OffsetDateTime.now().toEpochSecond();
  long id = secretSeriesDAO.createSecretSeries("toBeDeleted_deleteSecretSeriesByName", "creator",
      "", null, null, now);
  long contentId = secretContentDAO.createSecretContent(id, "blah",
      "checksum", "creator", null, 0, now);
  secretSeriesDAO.setCurrentVersion(id, contentId, "creator", now);
  assertThat(secretSeriesDAO.getSecretSeriesByName("toBeDeleted_deleteSecretSeriesByName")
      .get()
      .currentVersion())
      .isPresent();
  secretSeriesDAO.deleteSecretSeriesByName("toBeDeleted_deleteSecretSeriesByName");
  assertThat(
      secretSeriesDAO.getSecretSeriesByName("toBeDeleted_deleteSecretSeriesByName")).isEmpty();
  assertThat(secretSeriesDAO.getSecretSeriesById(id)).isEmpty();
}