public function testClusteringKeyMaterializedViews()
{
// Create the tables
$this->createTablesForMaterializedViews();
// Create the materialized view
$this->createClusteringKeyMaterializedView();
// Validate the schema metadata (three materialized views should exist now as well as two in table 2)
$keyspace = $this->session->schema()->keyspace($this->keyspaceName);
$this->assertCount(1, $keyspace->materializedViews());
$table = $keyspace->table("{$this->tableNamePrefix}_2");
$this->assertCount(1, $table->materializedViews());
$materializedView = $keyspace->materializedView("clustering_key");
$this->assertMaterializedViewsEqual($materializedView, $table->materializedView("clustering_key"));
$this->assertMaterializedView($materializedView, "clustering_key", "{$this->tableNamePrefix}_2", array("value1", "key2", "key1"), array("value1"), array("key2", "key1"));
}