function it_throws_an_exception_when_attempting_to_register_the_same_type_twice($converter)
    {
        $this->setType('decimal', $converter);
        $this->shouldThrow(new ResourceHandlerAlreadyDefinedException( 'An handler for resource "decimal" has already been registered.'))->duringSetType('decimal', $converter);
    }