@Test
public void allDifferent() {

    int[] communities = {1, 2, 3, 4, 7, 5};
    assertEquals(6, LouvainUtils.normalize(communities));
    assertArrayEquals(new int[]{0, 1, 2, 3, 4, 5}, communities);
}