Main { public void run() throws Exception { run(options.isJointServerThread()); } Main(); static void main(String[] args); boolean parseArguments(String[] args); void showOptions(); static void doRun(Main main); void run(); void run(boolean join); String getWarLocation(); void setWarLocation(String warLocation); String getWar(); void setWar(String war); String getContextPath(); void setContextPath(String contextPath); Integer getPort(); void setPort(Integer port); String getExtraClassPath(); void setExtraClassPath(String extraClassPath); boolean isJoinServerThread(); void setJoinServerThread(boolean joinServerThread); boolean isOpenUrl(); void setOpenUrl(boolean openUrl); boolean isHelp(); void showWelcome(boolean welcome);  }
@Test public void run() throws Exception { System.setProperty("hawtio.authenticationEnabled", "false"); int port = 12345; Main main = new Main(); main.setWarLocation("../hawtio-default/target/"); main.setPort(port); main.run(); HttpResponse response = Request.Get(String.format("http: .execute().returnResponse(); assertThat(response.getStatusLine().getStatusCode(), equalTo(200)); }