/**
  * @expectedException \InvalidArgumentException
  * @expectedExceptionMessage $role must be an instance of Oro\Bundle\UserBundle\Entity\Role or a string
  */
 public function testRemoveRoleThrowsInvalidArgumentException()
 {
     $user = new User();
     $user->removeRole(new \stdClass());
 }