DWTransform1D instance = new HaarWaveletTransform();
double[] approximationExpect = {2.121320343559, 4.949747468305, 7.778174593052, 4.949747468305};
double[] detailExpect = {-0.707106781186, -0.707106781186, -0.707106781186, 4.949747468306};
DecompositionResult result = instance.decompose(data, 1);
assertArrayEquals(approximationExpect, result.getApproximation(), DOBLE_COMPARISON_DELTA);
assertArrayEquals(detailExpect, result.getDetailsList().get(0), DOBLE_COMPARISON_DELTA);
double[] reconstructed = instance.reconstruct(result);
assertArrayEquals(data, reconstructed, DOBLE_COMPARISON_DELTA);
}