@Test
void testReplaceColumn() {

  DoubleColumn first = DoubleColumn.create("c1", new double[] {1, 2, 3, 4, 5});
  DoubleColumn second = DoubleColumn.create("c2", new double[] {6, 7, 8, 9, 10});
  DoubleColumn replacement = DoubleColumn.create("c2", new double[] {10, 20, 30, 40, 50});
  Table t = Table.create("populated", first, second);
  int colIndex = t.columnIndex(second);
  assertSame(t.column("c2"), second);
  t.replaceColumn("c2", replacement);
  assertSame(t.column("c1"), first);
  assertSame(t.column("c2"), replacement);
  assertEquals(t.columnIndex(replacement), colIndex);
}