HeartbeatDelegate extends Delegate { public void setHeartbeatMode(HeartbeatMode heartbeatMode) { this.heartbeatMode = heartbeatMode; } HeartbeatDelegate(); HeartbeatMode getHeartbeatMode(); void setHeartbeatMode(HeartbeatMode heartbeatMode); @Override void applyDelegate(Config config);  }
@Test public void testSetHeartbeatMode() { delegate.setHeartbeatMode(HeartbeatMode.PEER_NOT_ALLOWED_TO_SEND); assertTrue(delegate.getHeartbeatMode() == HeartbeatMode.PEER_NOT_ALLOWED_TO_SEND); }