@Test
public void preventUnwantedAlgorithmRegressionDueToRefactoring() {

    double[][] lpcCoding = lpc.applyLinearPredictiveCoding(sinusoid);
    
    assertThat(lpcCoding[0], is(equalTo(reference[0])));
    assertThat(lpcCoding[1], is(equalTo(reference[1])));
    
    // In case you need to regenerate the reference
      StringBuilder coeffs = new StringBuilder();
      StringBuilder errors = new StringBuilder();
      for(int i = 0; i < POLES; i++) {
          coeffs.append(lpcCoding[0][i]);
          errors.append(lpcCoding[1][i]);
          if((i + 1) % 5 == 0) {
              coeffs.append(",\n");
              errors.append(",\n");
          } else {
              coeffs.append(", ");
              errors.append(", ");
          }
      }
      System.out.println(coeffs.toString());
      System.out.println(errors.toString());
}