@Test
public void countSecretsDeletedBeforeDate() {

  // some secrets may have been deleted in test setup
  int initialCount = secretDAO.countSecretsDeletedBeforeDate(DateTime.now().plusDays(30));
  // delete a secret and recount
  secretDAO.deleteSecretsByName(series2.name());
  assertThat(secretDAO.countSecretsDeletedBeforeDate(DateTime.now().plusDays(30))).isEqualTo(
      initialCount + 1);
}