@Test
void shouldThrowWhenServerVersionCantBeParsed()
{

    ChannelPromise channelPromise = channel.newPromise();
    HelloResponseHandler handler = new HelloResponseHandler( channelPromise, BoltProtocolV3.VERSION );
    Map<String,Value> metadata = metadata( "WrongServerVersion", "bolt-x" );
    assertThrows( IllegalArgumentException.class, () -> handler.onSuccess( metadata ) );
    assertFalse( channelPromise.isSuccess() ); // initialization failed
    assertTrue( channel.closeFuture().isDone() ); // channel was closed
}