REVIEW: [NX-501] Token Pattern Parser

JIRA: https://issues.sonatype.org/browse/NX-501
Bamboo: http://bamboo.s/browse/NX-OSSF255-1
Is there anything that can be done about this? Not sure if you have a TODO because you're thinking another test would be good eventually...