@Test
public void testGetTxtLine() {

    String line = TextUtil.getTxtLine(new X(), ";", null, true);
    assertEquals(clean("LstInts=[...];LstStr=[...];X=      5;Y=6;Class=X"), clean(line));
    line = TextUtil.getTxtLine(new X(), ";", null, false);
    assertEquals(clean("  [...]; [...];      5;6;    X"), clean(line));
    line = TextUtil.getTxtLine(new ExtendsXNoAnno(), "|", null, true);
    assertEquals(clean("Prop=true|LstInts=[...]|LstStr=[...]|X=      5|Y=6|Class=ExtendsXNoAnno"), clean(line));
    line = TextUtil.getTxtLine(new ExtendsXNoAnno(), ";", null, false);
    assertEquals(clean("true;  [...]; [...];      5;6;ExtendsXNoAnno"), clean(line));
    line = TextUtil.getTxtLine(new ExtendsXAnno(), "|", null, true);
    assertEquals(clean("Prop=true|Y=6"), clean(line));
    line = TextUtil.getTxtLine(new ExtendsXAnno(), ";", null, false);
    assertEquals(clean("true;6"), clean(line));
    line = TextUtil.getTxtLine(new ExtendsXAnno(), ";", new String[] { "X", "Y" }, false);
    assertEquals(clean("5;6"), clean(line));
    line = TextUtil.getTxtLine(new ExtendsXAnno(), ";", new String[] { "Y", "X" }, false);
    assertEquals(clean("6;5"), clean(line));
    line = TextUtil.getTxtLine(new ExtendsXNoAnno(), ";", new String[] { "X" }, false);
    assertEquals(clean("5"), clean(line));
}