@Test public void getSecretByNameOneReturnsEmptyWhenCurrentVersionIsNull() {

  String name = secret1.series().name();
  jooqContext.update(SECRETS)
      .set(SECRETS.CURRENT, (Long) null)
      .where(SECRETS.ID.eq(series1.id()))
      .execute();
  assertThat(secretDAO.getSecretByName(name)).isEmpty();
}