@Test
public void testRealDataLen() {

  String data = null;
  int len = TextTable.realDataLen(data);
  Assert.assertEquals(0, len);
  data = "";
  len = TextTable.realDataLen(data);
  Assert.assertEquals(0, len);
  data = " ";
  len = TextTable.realDataLen(data);
  Assert.assertEquals(1, len);
  String name = "hopsworks1";
  String website = "Karamel Website";
  data = "<a kref='shellconnect hopsworks1'>" + name + "</a>";
  len = TextTable.realDataLen(data);
  Assert.assertEquals(name.length(), len);
  data = "baba <a kref='shellconnect hopsworks1'>" + name + "</a> mkmk<<>>";
  len = TextTable.realDataLen(data);
  Assert.assertEquals(("baba ".length() + name.length() + " mkmk<<>>".length()), len);
  data = "baba <a kref='shellconnect hopsworks1'>" + name + "</a> mkmk<<>> <a href='http://www.karamel.io/'>" +
      website + "</a>";
  len = TextTable.realDataLen(data);
  Assert.assertEquals("baba ".length() + name.length() +  " mkmk<<>> ".length() + website.length(), len);
}