@Override
    public void bind() {
        thread.start();
    }
@Test
    public void bindTest() throws IOException {
        EventLoopGroup leader = new NioEventLoopGroup();
        EventLoopGroup worker = new NioEventLoopGroup();
        ServerTakeHandler handler = new ServerTakeHandler(instance, o -> 1);
        ServerConnection connection = new SimpleServerConnection(leader, worker, handler);
        RPCServer rpcServer = new RPCServer(connection, RandomPort::getSafeRandomPort);
        rpcServer.bind();
        while (!rpcServer.isActive()) {
            LockSupport.parkNanos(TimeUnit.MILLISECONDS.toNanos(1L));
        }
        boolean active = rpcServer.isActive();
        Assert.assertTrue(active);
        rpcServer.close();
    }