### Question:
ISOServer extends Observable implements LogSource, Runnable, Observer, ISOServerMBean, Configurable,
    Loggeable, ISOServerSocketFactory { public static ISOServer getServer (String name) throws NameRegistrar.NotFoundException { return (ISOServer) NameRegistrar.get ("server."+name); } ISOServer(int port, ServerChannel clientSide, ThreadPool pool); @Override void setConfiguration(Configuration cfg); void addISORequestListener(ISORequestListener l); void removeISORequestListener(ISORequestListener l); void shutdown(); @Override ServerSocket createServerSocket(int port); @Override void run(); void setName(String name); static ISOServer getServer(String name); String getName(); @Override void setLogger(Logger logger, String realm); @Override String getRealm(); @Override Logger getLogger(); @Override void update(Observable o, Object arg); ISOServerSocketFactory getSocketFactory(); void setSocketFactory(ISOServerSocketFactory socketFactory); @Override int getPort(); @Override void resetCounters(); @Override int getConnectionCount(); @Override int getJobCount(); @Override int getPoolSize(); @Override int getMaxPoolSize(); @Override int getIdleCount(); @Override int getPendingCount(); int getActiveConnections(); ISOChannel getLastConnectedISOChannel(); ISOChannel getISOChannel(String name); @Override String getISOChannelNames(); String getCountersAsString(); int[] getCounters(); @Override int getTXCounter(); @Override int getRXCounter(); int getConnections(); @Override long getLastTxnTimestampInMillis(); @Override long getIdleTimeInMillis(); @Override String getCountersAsString(String isoChannelName); @Override void dump(PrintStream p, String indent); synchronized void addServerEventListener(ISOServerEventListener listener); synchronized void removeServerEventListener(ISOServerEventListener listener); synchronized void fireEvent(EventObject event); static final int DEFAULT_MAX_THREADS; static final String LAST; static final int CONNECT; static final int SIZEOF_CNT; }### Answer:
@Test public void testGetServerThrowsNotFoundException() throws Throwable { try { ISOServer.getServer("testISOServerName"); fail("Expected NotFoundException to be thrown"); } catch (NameRegistrar.NotFoundException ex) { assertEquals("server.testISOServerName", ex.getMessage(), "ex.getMessage()"); } }