@Test public void deleteSecretSeriesById() {

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