private static ChannelMetadata metadata(boolean hasDisconnect) {
        return hasDisconnect ? METADATA_DISCONNECT : METADATA_NO_DISCONNECT;
    }
Create a new instance with the channel ID set to the given ID and the pipeline
initialized with the specified handlers.

@param channelId the {@link ChannelId} that will be used to identify this channel
@param hasDisconnect {@code false} if this {@link Channel} will delegate {@link #disconnect()}
                     to {@link #close()}, false otherwise.
@param config the {@link ChannelConfig} which will be returned by {@link #config()}.
@param handlers the {@link ChannelHandler}s which will be add in the {@link ChannelPipeline}
plc4j/transports/test/src/main/java/io/netty/channel/embedded/Plc4xEmbeddedChannel.java