public static void test() throws IOException { TestClient client = new TestClient("localhost", TestServer.PORT);
public static void test(int port) throws IOException { TestClient client = new TestClient("localhost", port);
    public static void test() throws IOException {        TestClient client = new TestClient("localhost", TestServer.PORT);        mLog.info("greet: " + client.getLastResponse());        mLog.info("client: helo");        client.helo();        mLog.info("response: " + client.getLastResponse());        int nb = random.nextInt(MAX_DIGEST_BYTES) + 1;        byte bv = (byte)(random.nextInt(126) + 1);        byte[] ba = new byte[nb];        Arrays.fill(ba, 0, nb, bv);                mLog.info("client: sum n=" + nb + " v=" + bv);        client.sum(ba);        long sum = new Long(client.getLastResponse()).longValue();        if (sum != (nb * bv)) {            mLog.info("response: FAIL client expected=" + (nb * bv) + " got=" + sum);        } else {            mLog.info("response: OK expected and got " + sum);        }        mLog.info("client: nsum n=" + nb + " v=" + bv);        client.nsum(ba);        long nsum = new Long(client.getLastResponse()).longValue();        if (nsum != (nb * bv)) {            mLog.info("response: FAIL client expected=" + (nb * bv) + " got=" + nsum);        } else {            mLog.info("response: OK expected and got " + nsum);        }                    mLog.info("client: quit");        client.quit();        mLog.info("response: " + client.getLastResponse());                client.close();    }