@Test
public void shouldThrowExeptionWhileMovingUpWithoutParent() {

    KeePassFile keePassFile = createFlatGroupStructure();
    GroupZipper zipper = new GroupZipper(keePassFile);
    expectedException.expect(RuntimeException.class);
    expectedException.expectMessage("Could not move up because this group does not have a parent");
    zipper.up();
}