internal void Deserialize(byte[] data, InstructConnectMessage expected)
    {
        var message = InstructConnectMessageSerializer.Default.Deserialize(data);

        message.PacketType.Should().Be(expected.PacketType);
        message.Dpnid.Should().Be(expected.Dpnid);
        message.Version.Should().Be(expected.Version);
        message.VersionNotUsed.Should().Be(expected.VersionNotUsed);
    }
 internal void Serialize(byte[] expected, InstructConnectMessage message)
 {
     InstructConnectMessageSerializer.Default.Serialize(message).Should().Equal(expected);
 }