@Test
public void asIntMatrix() {

  double[] array1 = {0, 1, 2};
  double[] array2 = {0, 1, 2};
  DoubleColumn c1 = DoubleColumn.create("1", array1);
  DoubleColumn c2 = DoubleColumn.create("2", array2);
  Table table = Table.create("test", c1, c2);
  int[][] expected = {{0, 0}, {1, 1}, {2, 2}};
  int[][] results = table.as().intMatrix();
  assertTrue(Arrays.deepEquals(expected, results));
}