public function testRemoveFail()
{
$app = $this->getApp();
$app['users'] = $this->getUserMockWithReturns(false, true);
$command = new UserRoleRemove($app);
$tester = new CommandTester($command);
$tester->execute(['username' => 'test', 'role' => 'admin']);
$result = $tester->getDisplay();
$this->assertRegExp('/Could not remove role/', trim($result));
}