'Test cluster connection with protocol version 5 and beta flag set
@since 3.7.0
@jira_ticket PYTHON-614
@expected_result client should connect with protocol v5 and beta flag set.
@test_category connection'

@protocolv5
def test_valid_protocol_version_beta_options_connect(self):

    cluster = Cluster(protocol_version=cassandra.ProtocolVersion.MAX_SUPPORTED, allow_beta_protocol_version=True)
    session = cluster.connect()
    self.assertEqual(cluster.protocol_version, cassandra.ProtocolVersion.MAX_SUPPORTED)
    self.assertTrue(session.execute('select    release_version    from    system.local')[0])
    cluster.shutdown()
