StandAloneClusterController { public static void main(String args[]) throws Exception { runApplication(new StandAloneClusterController(new ClusterControllerConfigFetcher())); } StandAloneClusterController(ClusterControllerConfigFetcher config); static void main(String args[]); static void runApplication(StandAloneClusterController myApp); String getName(); void start(); void run(); void stop();  }
@Test public void testCallMainToGetCoverage() throws Exception { tearDown(); setProperty("config.id", "file:non-existing"); try{ StandAloneClusterController.main(new String[0]); fail("Control should not get here"); } catch (IllegalArgumentException e) { } }