@Test
void shouldUseProtocolVersionForServerVersionWhenConnectedWithBoltV4()
{

    ChannelPromise channelPromise = channel.newPromise();
    HelloResponseHandler handler = new HelloResponseHandler( channelPromise, BoltProtocolV4.VERSION );
    // server used in metadata should be ignored
    Map<String,Value> metadata = metadata( ServerVersion.vInDev, "bolt-1" );
    handler.onSuccess( metadata );
    assertTrue( channelPromise.isSuccess() );
    assertEquals( ServerVersion.v4_0_0, serverVersion( channel ) );
}