Boot { public static void main(final String... args) { preMainConfig(); log.info("=== Welcome to SilverWare ==="); final Context initialContext = getInitialContext(args); try { Executor.bootHook(initialContext); } catch (InterruptedException ie) { Utils.shutdownLog(log, ie); } log.info("Goodbye."); logFlush(); }  static void main(final String... args);  }
@Test public void testFullBoot() throws InterruptedException { Boot.main("-D" + SHUTDOWN_HOOK + "=false"); Assert.assertTrue(semaphore.tryAcquire(50, TimeUnit.SECONDS), "Timed-out while waiting for platform startup."); Assert.assertTrue(wasInit); Assert.assertTrue(wasRun); Assert.assertFalse(wasInterrupted); }