@Test
public void setAsPermutationTest() {

    int partitionSize = 5;
    int permutationSize = 3;
    Partition partition = new Partition();
    for (int i = 0; i < partitionSize; i++) {
        partition.addSingletonCell(i);
    }
    Permutation permutation = partition.setAsPermutation(permutationSize);
    for (int i = 0; i < permutationSize; i++) {
        Assert.assertEquals(i, permutation.get(i));
    }
}