### Question:
FixServer extends AbstractFixConnector { public void stop() { if (channel == null) { throw new IllegalStateException("Server is not started."); } LOGGER.info("Stopping FixServer"); try { channel.close().sync(); channel = null; } catch (InterruptedException e) { LOGGER.error("Error while stopping server", e); } finally { bossGroup.shutdownGracefully(); bossGroup = null; workerGroup.shutdownGracefully(); workerGroup = null; } } FixServer(int port,
                     FixApplication fixApplication,
                     FixAuthenticator authenticator,
                     SessionRepository sessionRepository); void start(); void stop();  }### Answer:
@Test(expected = IllegalStateException.class) public void testStopBeforeStart() { server.stop(); }