@Test
public void testNormalize() {

    Event expected, event;
    expected = Events.with(3);
    event = Events.with(2, Events.with(1), Events.with(1));
    // norm((2, 1, 1)) == 3
    assertEquals(expected, event.normalize());
    expected = Events.with(4, Events.with(0, Events.with(1), Events.with(0)), Events.with(1));
    event = Events.with(2, Events.with(2, Events.with(1), Events.with(0)), Events.with(3));
    // norm((2, (2, 1, 0), 3)) == (4, (0, 1, 0), 1)
    assertEquals(expected, event.normalize());
}