void pingSuccess() {
        agentHealthHolder.pingSuccess();
    }
@Test
    void remembersLastPingTime() {
        // initial time
        Date now = new Date(42);
        clock.setTime(now);
        agentController.pingSuccess();

        assertThat(agentHealthHolder.hasLostContact()).isFalse();
        clock.addMillis(pingInterval);
        assertThat(agentHealthHolder.hasLostContact()).isFalse();
        clock.addMillis(pingInterval);
        assertThat(agentHealthHolder.hasLostContact()).isTrue();
    }