@Test
 public final void testGetNameHtmlPersonUnset() {
   final PersonRenderer personRenderer =
       new PersonRenderer(new Person(), new GedRendererFactory(), userContext);
   final PersonNameIndexRenderer pnhr =
       (PersonNameIndexRenderer) personRenderer.getNameIndexRenderer();
   assertEquals("", pnhr.getIndexName());
 }
 @Test
 public final void testGetNameHtmlSurnameFirst() {
   final Name name = new Name(person, "/Deng/Shao Ping");
   person.addAttribute(name);
   final PersonRenderer personRenderer =
       new PersonRenderer(person, new GedRendererFactory(), userContext);
   final PersonNameIndexRenderer pnhr =
       (PersonNameIndexRenderer) personRenderer.getNameIndexRenderer();
   assertEquals(
       "<a href=\"person?db=null&amp;id=I1\" class=\"name\">"
           + " <span class=\"surname\">Deng</span>, Shao Ping (I1)</a>",
       pnhr.getIndexName());
 }
 @Test
 public final void testGetNameHtmlSurnameMiddle() {
   final Name name = new Name(person, "Karl Frederick/Schoeller/Sr.");
   person.addAttribute(name);
   final PersonRenderer personRenderer =
       new PersonRenderer(person, new GedRendererFactory(), userContext);
   final PersonNameIndexRenderer pnhr =
       (PersonNameIndexRenderer) personRenderer.getNameIndexRenderer();
   assertEquals(
       "<a href=\"person?db=null&amp;id=I1\" class=\"name\">"
           + " <span class=\"surname\">Schoeller</span>, Karl Frederick,"
           + " Sr. (I1)</a>",
       pnhr.getIndexName());
 }