### Question:
ServerSocketAppenderBase extends AppenderBase<E> { @Override public void stop() { if (!isStarted()) return; try { runner.stop(); super.stop(); } catch (IOException ex) { addError("server shutdown error: " + ex, ex); } }  @Override void start(); @Override void stop(); int getPort(); void setPort(int port); Integer getBacklog(); void setBacklog(Integer backlog); String getAddress(); void setAddress(String address); int getClientQueueSize(); void setClientQueueSize(int clientQueueSize); static final int DEFAULT_BACKLOG; static final int DEFAULT_CLIENT_QUEUE_SIZE; }### Answer:
@Test public void testStopWhenNotStarted() throws Exception { appender.stop(); assertEquals(0, runner.getStartCount()); }