@Test public void getSecretByIdOneReturnsEmptyWhenCurrentVersionIsNull() {

  jooqContext.update(SECRETS)
      .set(SECRETS.CURRENT, (Long) null)
      .where(SECRETS.ID.eq(series2.id()))
      .execute();
  assertThat(secretDAO.getSecretById(series2.id())).isEmpty();
}