208209210211212213214215
Pattern tokenPattern = tokens.get(tokenName); Matcher tokenMatcher = tokenPattern.matcher(tokenValue); if(!tokenMatcher.matches()) { // TODO: we need a test for this throw new MalformedTokenException(tokenName, tokenValue, tokenPattern); } }