public static function setProtectedProperty($object, $property, $value)
    {
        $refObject = new \ReflectionObject($object);
        $refProp   = $refObject->getProperty($property);
        $refProp->setAccessible(true);
        $refProp->setValue($object, $value);

        return $object;
    }