@Test
public void testGetPermutedLabels() {

    int[] permutations = new int[] { 2, 1, 3, 0 };
    List<String> originalLabels = ImmutableList.of("e1", "e2", "e3", "e4");
    List<String> result = GraphPartition.getPermutedLabels(originalLabels, permutations);
    List<String> expectedResult = ImmutableList.of("e3", "e2", "e4", "e1");
    assertEquals(expectedResult, result);
}