@Test
public void testSaveHeartbeat() {

  DBI dbi = new DBI(DB_URL);
  UUID reaperInstanceId = UUID.randomUUID();
  PostgresStorage storage = new PostgresStorage(reaperInstanceId, dbi);
  Assertions.assertThat(storage.isStorageConnected()).isTrue();
  Handle handle = dbi.open();
  handle.execute("DELETE from running_reapers");
  storage.saveHeartbeat();
  int numReapers = storage.countRunningReapers();
  Assertions.assertThat(numReapers).isEqualTo(1);
}