@Test
public void testHeartbeat() throws IOException, PAPException {

    Heartbeat hb = new Heartbeat(null);
    assertThatThrownBy(hb::run).isInstanceOf(NullPointerException.class);
    assertTrue(hb.isHeartBeatRunning());
    hb.terminate();
    assertFalse(hb.isHeartBeatRunning());
}