public function testResolveWithCustomOptionHandler()
{
$this->params = array('optionalA', 'optionalB', 'mandatory');
$this->resolver = new ExtraOptionsResolver(new \ReflectionClass($this->class), $this->params);
// Create a stub for the SomeClass class.
$stub = $this->getMockBuilder('Cascade\\Config\\Loader\\ClassLoader')->disableOriginalConstructor()->getMock();
$stub->method('canHandle')->willReturn(true);
// Resolve an empty array (edge case)
$this->assertEquals(array('mandatory' => 'abc'), $this->resolver->resolve(array('mandatory' => 'abc'), $stub));
}