UpdateChecker { public static void init(Timer timer, Collector collector, String applicationType) { if (!Parameter.UPDATE_CHECK_DISABLED.getValueAsBoolean()) { final UpdateChecker updateChecker = new UpdateChecker(collector, applicationType, SERVER_URL); final TimerTask updateCheckerTimerTask = new TimerTask() { @Override public void run() { try { updateChecker.checkForUpdate(); } catch (final Throwable t) { } } }; timer.scheduleAtFixedRate(updateCheckerTimerTask, 10L * 60 * 1000, 24L * 60 * 60 * 1000); } } private  UpdateChecker(final Collector collector, final String applicationType,
			final String serverUrl); static void init(Timer timer, Collector collector, String applicationType); static String getNewJavamelodyVersion();  }
@Test public void testInit() { Utils.setProperty(Parameter.UPDATE_CHECK_DISABLED, "true"); UpdateChecker.init(null, null, null); }