OzProtocolHandlerFactory testHandlerFactory = new OzProtocolHandlerFactory() { public OzProtocolHandler newProtocolHandler() { return new TestProtocolHandler(); } }; mServer = new OzServer("Test", null, PORT, testHandlerFactory); mServer.setSnooper(new OzSnooper(System.out, OzSnooper.ALL)); mServer.start();
new TestServer(Integer.parseInt(args[0]));
    public static void main(String[] args) throws IOException {        OzProtocolHandlerFactory testHandlerFactory = new OzProtocolHandlerFactory() {            public OzProtocolHandler newProtocolHandler() {                return new TestProtocolHandler();            }        };        mServer = new OzServer("Test", null, PORT, testHandlerFactory);        mServer.setSnooper(new OzSnooper(System.out, OzSnooper.ALL));        mServer.start();    }