public function testOnDispatchWithIdentityAndAdminRole()
{
$userModel = UserModel::fromArray(array('lastname' => 'Test', 'firstname' => 'Test', 'email' => '[email protected]', 'login' => 'login-test', 'user_acl_role_id' => 1));
$userModel->setPassword('password-test');
$userModel->save();
$userModel->authenticate('login-test', 'password-test');
$routeMatch = new RouteMatch(array());
$routeMatch->setMatchedRouteName('cms');
$this->object->getEvent()->setRouteMatch($routeMatch);
$this->assertInstanceOf('Zend\\View\\Model\\ViewModel', $this->object->dispatch(Registry::get('Application')->getRequest(), null));
$userModel->delete();
}