*/
public void testAddLinkToMap()
{
Map<String, java.util.List<TextRange>> map = new HashMap<String, java.util.List<TextRange>>();
TextRange range0 = new TextRange(0, 0);
HTMLArticleDisplay.addLinkToMap(map, "a", range0);
assertEquals("The link wasn't added.", 1, map.size());
java.util.List<TextRange> record = map.get("a");
assertTrue("Wrong object.", record.get(0) == range0);
// Adding duplicate link
TextRange range1 = new TextRange(1, 1);
HTMLArticleDisplay.addLinkToMap(map, "a", range1);
assertEquals("The link should be added to existing link entry.", 1, map.size());
record = map.get("a");
assertTrue("Wrong object.", record.get(0) == range0);