public function testCanParseMethodTokens()
{
$token = new Token('', new TokenType(TokenType::OPTIONAL_TYPE));
$anotherToken = new Token('', new TokenType(TokenType::IDENTITY_TYPE));
$parser = new OptionalTokenParser();
$this->assertTrue($parser->canParse($token));
$this->assertFalse($parser->canParse($anotherToken));
}