public function testMaterializedViews()
{
// Create the tables
$this->createTablesForMaterializedViews();
// Create the materialized view
$this->createSimpleMaterializedView();
// Validate the schema metadata (a single materialized views exist)
$keyspace = $this->session->schema()->keyspace($this->keyspaceName);
$this->assertCount(1, $keyspace->materializedViews());
$table = $keyspace->table("{$this->tableNamePrefix}_1");
$this->assertCount(1, $table->materializedViews());
$materializedView = $keyspace->materializedView("simple");
$this->assertMaterializedViewsEqual($materializedView, $table->materializedView("simple"));
$this->assertMaterializedView($materializedView, "simple", "{$this->tableNamePrefix}_1", array("value1", "key1"), array("value1", "key1"), array("key1"));
}