@SuppressWarnings("ProhibitedExceptionDeclared")
@Test(expected = IllegalStateException.class)
public void testMainFails() throws Exception {

    LOG.info("testMainFails");

    // This will fail, as it needs to run from a WAR file and we can't do that here.
    // Arguments: [--port <port>] [--silent] [--debug] [--help]
    Main.main("--port", "8080", "--debug");
}