@Test(expected = IllegalStateException.class)
public void getSecretByIdOneThrowsExceptionIfCurrentVersionIsInvalid() {

  jooqContext.update(SECRETS)
      .set(SECRETS.CURRENT, -1234L)
      .where(SECRETS.ID.eq(series2.id()))
      .execute();
  secretDAO.getSecretById(series2.id());
}