@Test
public void testGetCaptionLine() {

    String line = TextUtil.getCaptionLine(X.class, ";");
    assertEquals(clean("LstInts;LstStr;      X;Y;Class"), clean(line));
    line = TextUtil.getCaptionLine(ExtendsXNoAnno.class, "|");
    assertEquals(clean("Prop|LstInts|LstStr|      X|Y|Class"), clean(line));
    line = TextUtil.getCaptionLine(ExtendsXAnno.class, "|");
    assertEquals(clean("Prop|Y"), clean(line));
    line = TextUtil.getCaptionLine(ExtendsXNoAnno.class, "|", new String[] { "X", "Prop" });
    assertEquals(clean("X|Prop"), clean(line));
    line = TextUtil.getCaptionLine(ExtendsXAnno.class, "|", new String[] { "X", "LstStr" });
    assertEquals(clean("X|LstStr"), clean(line));
}