@Override
    public long lastHeartbeat() {
        return lastHeartbeatMillis;
    }
@Test
    public void lastHeartbeat() {
        long timestamp = Clock.currentTimeMillis();
        failureDetector.heartbeat(timestamp);

        long lastHeartbeat = failureDetector.lastHeartbeat();
        assertEquals(timestamp, lastHeartbeat);
    }