protected function setUp()
 {
     $this->roleStorage = new JsonRoleStorage(__DIR__ . DIRECTORY_SEPARATOR . 'roles.json');
     $this->rulesStorage = new JsonRulesStorage(__DIR__ . DIRECTORY_SEPARATOR . 'rules.json');
     $this->roleStorage->addRole('fritzchen', 'editor');
     $this->roleStorage->addRole('fritzchen', 'admin');
     $this->roleStorage->addRole('hänschen', 'guest');
     $this->roleStorage->addRole('mäxchen', 'merchant');
     $rulesTable = new RulesTable();
     $rulesTable->addRule('*', '*', 'read');
     $rulesTable->addRule('editor', 'blog', 'write');
     $rulesTable->addRule('merchant', 'shop', array('addItem', 'deleteItem', 'editItem'));
     $this->rulesStorage->storeTable($rulesTable);
     $this->instance = new RoleBasedAuthorization($this->roleStorage, $this->rulesStorage);
 }