@Test
public void getPivot() throws Exception {

    Vector pivot = new LUDecomposition(testMatrix).getPivot();
    assertEquals("Unexpected pivot size.", rawPivot.length, pivot.size());
    for (int i = 0; i < testU.rowSize(); i++)
        assertEquals("Unexpected value at " + i, rawPivot[i], (int)pivot.get(i) + 1);
}