/** @since 2.0.4 * */
protected void assertLocalizationToken(TemplateToken token, String key, Map attributes, int line)
{
LocalizationToken t = (LocalizationToken) token;
assertEquals("Localization token type.", TokenType.LOCALIZATION, t.getType());
assertEquals("Localization key.", key, t.getKey());
assertEquals("Localization attributes.", attributes, t.getAttributes());
checkLine(token, line);
}