### Question:
LUDecompositionCommonsResult implements LUDecompositionResult { @Override public DoubleArray solve(DoubleArray b) { ArgChecker.notNull(b, "b"); return CommonsMathWrapper.unwrap(_solver.solve(CommonsMathWrapper.wrap(b))); } LUDecompositionCommonsResult(LUDecomposition lu); @Override double getDeterminant(); @Override DoubleMatrix getL(); @Override DoubleMatrix getP(); @Override int[] getPivot(); @Override DoubleMatrix getU(); @Override DoubleArray solve(DoubleArray b); @Override double[] solve(double[] b); @Override DoubleMatrix solve(DoubleMatrix b);  }### Answer:
@Test public void testSolveForVector() { double[] expectedRaw = new double[] {0.0090821107573878, -0.0038563963265099, -0.0016307897061976, 0.1428043882617839}; assertThat(FuzzyEquals.ArrayFuzzyEquals(RESULT.solve(RAW_RHS_VECT), expectedRaw)).isTrue(); assertThat(FuzzyEquals.ArrayFuzzyEquals(RESULT.solve(DoubleArray.copyOf(RAW_RHS_VECT)).toArray(), expectedRaw)).isTrue(); }
@Test public void testSolveForMatrix() { double[][] expectedRaw = new double[][] { {0.0103938059732010, 0.0181642215147756}, {-0.0147149030138629, -0.0077127926530197}, {-0.0171480759531631, -0.0032615794123952}, {0.2645342893362958, 0.2856087765235678}}; assertThat(FuzzyEquals.ArrayFuzzyEquals(RESULT.solve(DoubleMatrix.copyOf(RAW_RHS_MAT)).toArray(), expectedRaw)).isTrue(); }