public function disablingAndEnabling()
{
$handler = $this->create(null);
$handler->setEnabled(false);
$this->assertFalse($handler->__invoke("Test"));
$handler->setEnabled(true);
$this->setExpectedException('BadMethodCallException');
$this->assertFalse($handler->__invoke("Test"));
$this->fail('An expected exception has not been thrown');
}