public function testIndexException()
{
R::nuke();
$book = R::dispense('book');
$book->title = 'a';
R::store($book);
try {
R::getWriter()->addIndex('book', '\'', 'title');
pass();
} catch (\Exception $e) {
fail();
}
R::getWriter()->addIndex('book', '\'', 'title');
pass();
}