/**
* @expectedException \Exception
* @expectedExceptionMessage Table 'log_foo_bar_baz' can't be used for segmentation
*/
public function test_addTableToJoin_shouldCheckIfTableCanBeUsedForSegmentation()
{
$table = 'log_foo_bar_baz';
$this->assertFalse($this->tables->hasJoinedTable($table));
$this->tables->addTableToJoin($table);
$this->assertTrue($this->tables->hasJoinedTable($table));
}