### Question:
Runner { public static void main(String... args) throws ConfigurationException { long time = System.currentTimeMillis(); StartupConfiguration parameters = new StartupConfiguration(); JCommander jCommander = new JCommander(parameters); FosServer fosServer; try { jCommander.parse(args); logger.info("Starting fos server using configuration from {}", parameters.getConfiguration()); FosConfig serverConfig = new FosConfig(new PropertiesConfiguration(parameters.getConfiguration())); if (serverConfig.isEmbeddedRegistry()) { LocateRegistry.createRegistry(serverConfig.getRegistryPort()); logger.debug("RMI registry started in port {}", serverConfig.getRegistryPort()); } fosServer = new FosServer(serverConfig); fosServer.bind(); logger.info("FOS Server started in {}ms", (System.currentTimeMillis() - time)); } catch (ParameterException e) { jCommander.usage(); } catch (Exception e) { logger.error("Could not launch RMI service", e); } }  static void main(String... args);  }### Answer:
@Test public void mainTest() throws Exception { Runner.main("-c", "target/test-classes/ClassificationServerParameters.properties"); UUID dummy = UUID.nameUUIDFromBytes(new byte[0]); Registry registry = LocateRegistry.getRegistry(); IRemoteManager manager = (IRemoteManager) registry.lookup(IRemoteManager.class.getSimpleName()); RemoteScorer scorer = (RemoteScorer) registry.lookup(RemoteScorer.class.getSimpleName()); assertArrayEquals(manager.getScorer().score(dummy, new Object[0]), scorer.score(dummy, new Object[0]), EPS); }