@Test
public void getL() throws Exception {

    Matrix luDecompositionL = new LUDecomposition(testMatrix).getL();
    assertEquals("Unexpected row size.", testL.rowSize(), luDecompositionL.rowSize());
    assertEquals("Unexpected column size.", testL.columnSize(), luDecompositionL.columnSize());
    for (int i = 0; i < testL.rowSize(); i++)
        for (int j = 0; j < testL.columnSize(); j++)
            assertEquals("Unexpected value at (" + i + "," + j + ").",
                testL.getX(i, j), luDecompositionL.getX(i, j), 0.0000001d);
    luDecompositionL.destroy();
}