@Test
public void testNettyServer() {

    Attribute attribute = new Attribute();
    attribute.put(RemotingConst.HOST_KEY, "127.0.0.1");
    attribute.put(RemotingConst.PORT_KEY, 8080);
    // handle request
    HodorServerChannelHandler handler = new HodorServerChannelHandler();
    NetServerTransport netServerTransport = ExtensionLoader.getExtensionLoader(NetServerTransport.class).getDefaultJoin();
    NetServer netServer = netServerTransport.bind(attribute, handler);
    netServer.bind();
}