@Test public void setCurrentVersion() {

  long now = OffsetDateTime.now().toEpochSecond();
  long id = secretSeriesDAO.createSecretSeries("toBeDeleted_deleteSecretSeriesByName", "creator",
      "", null, null, now);
  Optional<SecretSeries> secretSeriesById = secretSeriesDAO.getSecretSeriesById(id);
  assertThat(secretSeriesById).isEmpty();
  long contentId = secretContentDAO.createSecretContent(id, "blah",
      "checksum", "creator", null, 0, now);
  secretSeriesDAO.setCurrentVersion(id, contentId, "updater", now + 3600);
  secretSeriesById = secretSeriesDAO.getSecretSeriesById(id);
  assertThat(secretSeriesById.get().currentVersion().get()).isEqualTo(contentId);
  assertThat(secretSeriesById.get().updatedBy()).isEqualTo("updater");
  assertThat(secretSeriesById.get().updatedAt().toEpochSecond()).isEqualTo(now + 3600);
}