@Test
public void should_pass_disconnectionHandler() {

    Consumer<InetSocketAddress> disconnectConsumer = inetSocketAddress -> {
    };
    //when
    server.setConnectHandler(disconnectConsumer);
    //then
    verify(msg).setConnectHandler(eq(disconnectConsumer));
}