protected static function _setWhenMockResponse(
        $className,
        $instanceId,
        $methodName,
        $args,
        $action,
        $returns
    ) {
        $args = serialize($args);

        $returnValues = array();
        $returnValues[$className][$instanceId][$methodName][$args]['response'] = ['action' => $action, 'value' => $returns];

        self::_addChainedResponse($returnValues);
    }