@Test
public void innerJoinDuplicateKeysSecondTableWithTextColumn() {

  Table feed = ANIMAL_FEED.copy();
  Table names = ANIMAL_NAMES.copy();
  feed.replaceColumn("Animal", feed.stringColumn("Animal").asTextColumn());
  TextColumn nameCol = names.stringColumn("Animal").asTextColumn();
  nameCol = nameCol.where(Selection.withRange(0, feed.rowCount()));
  feed.replaceColumn("Animal", nameCol);
  Table joined = ANIMAL_FEED.joinOn("Animal").inner(ANIMAL_NAMES, "Animal");
  assertEquals(3, joined.columnCount());
  assertEquals(4, joined.rowCount());
}