        $loader = new ActionLoader($generator);
        $className = 'User\\Action\\BulkUpdateUser2';
        $actionTemplate->register($loader, 'TwigActionTemplate', array(
            'action_class' => $className,
            'template' => '@WebAction/RecordAction.html.twig',
            'variables' => array(
                'record_class' => \User\Model\User::class,
                'base_class' => \WebAction\RecordAction\CreateRecordAction::class,
            )
        ));
        $this->assertCount(1, $loader->getPretreatments());
        $this->assertNotNull($pretreatment = $loader->getPretreatment($className));

        $generatedAction = $actionTemplate->generate($className, $pretreatment['arguments']);