protected function getResolvedOptions(array $options)
    {
        $resolver = new OptionsResolver();
        $resolver->setDefaults(array(
                'processClass' => 'Symfony\\Component\\Process\\Process',
            ))
            ->setRequired(array('folder'))
            ->setAllowedTypes(array(
                'processClass' => 'string',
                'folder' => 'string',
            ))
        ;

        return $resolver->resolve($options);
    }