@Test
public void invertTest() {

    int[] values = new int[]{3, 1, 0, 2};
    int[] invert = new int[]{2, 1, 3, 0};
    Permutation p = new Permutation(values);
    Permutation invP = new Permutation(invert);
    Assert.assertEquals(invP, p.invert());
}