@Test
public void testComputeOrthogonalityIdenticalColumns() {

  /** A matrix with identical columns */
  DoubleMatrix2D identical =
      new DenseDoubleMatrix2D(
          new double[][] {
            {0.00, 0.00, 0.00},
            {0.49, 0.49, 0.49},
            {0.49, 0.49, 0.49},
            {0.72, 0.72, 0.72},
            {0.00, 0.00, 0.00}
          });
  assertThat(MatrixUtils.computeOrthogonality(identical)).isEqualTo(1.0, Offset.offset(0.02));
}