@Test
void prune() {

    root.addChild(Literal.<String>builder("a").then(Literal.<String>builder("child").build()).build());
    
    tree.prune(root, commands);
    
    assertEquals(3, root.getChildren().size());
    assertNull(root.getChild("a").getChild("child"));
}