TagRegistry { public static Integer getIndexByTagName(final String tagName) { return IndexedTagName.INSTANCE.getIndexByTagName(tagName); }  static List<String> getTagNames(); static Integer getIndexByTagName(final String tagName); static void register(final String... tagNamesToRegister); static Map<String, String> getTagClassNameByTagName(); static Map<String, Class<?>> getTagClassByTagName(); static void loadAllTagClasses(); static AbstractHtml getNewTagInstance(final String tagName); static AbstractHtml getNewTagInstance(final String tagName,
            final AbstractHtml parent, final AbstractAttribute... attributes); static AbstractHtml getNewTagInstanceOrNullIfFailed(
            final String tagName, final AbstractHtml parent,
            final AbstractAttribute... attributes); static AbstractHtml getNewTagInstanceOrNullIfFailed(
            final int tagNameIndex, final AbstractHtml parent,
            final AbstractAttribute... attributes);  }
@Test public void testGetIndexByTagName() throws Exception { final List<String> tagNames = TagRegistry.getTagNames(); for (String tagName : tagNames) { final int indexByTagName = TagRegistry.getIndexByTagName(tagName); final String tagNameByIndex = tagNames.get(indexByTagName); assertEquals(tagName, tagNameByIndex); } }