@Test
void removeChild() {

    when(map.register(literal)).thenReturn(new DispatcherCommand("a", null, null, null, List.of("a1")));
    
    root.addChild(literal);
    
    assertEquals(4, root.getChildren().size());
    
    assertEquals(literal, root.removeChild("a"));
    assertEquals(0, root.getChildren().size());
}