@Test
    public void testLowBiggerThanDefaultHigh() throws InterruptedException {
        System.setProperty(Configs.NETTY_BUFFER_HIGH_WATERMARK, Integer.toString(300 * 1024));
        System.setProperty(Configs.NETTY_BUFFER_LOW_WATERMARK, Integer.toString(200 * 1024));
        server = new BoltServer(port, true);
        Assert.assertTrue(server.start());

        try {
            client = new RpcClient();
            client.init();
            client.getConnection(addr, 3000);
        } catch (IllegalArgumentException e) {
            Assert.fail("should not reach here");
        } catch (RemotingException e) {
            // not connected, but ok, here only test args init
        }
    }
water mark init test

@author xiaomin.cxm
@version $Id: WaterMarkTest.java, v 0.1 Apr 6, 2016 8:58:36 PM xiaomin.cxm Exp $
src/test/java/com/alipay/remoting/rpc/watermark/WaterMarkInitTest.java