public function testTestCreateNewExceptionForUnexpectedCall()
{
$exception = FlagParserExceptionFactory::createForExpectedMethodToBeCalledIfHasAParser('foo');
$this->assertEquals('Expected method "foo" to be called only if it has a flag parser.', $exception->getMessage());
$this->assertEquals(0, $exception->getCode());
$this->assertNull($exception->getPrevious());
}