    @Test
    public void testDeleteList() throws IOException {

        String rootName = "root_" + UUID.randomUUID().toString();
        WFList root = client.createRootList(0, rootName, null);
        WFList child = client.createList(root, 0, "child_" + rootName, null);
        assertTrue(root.getChildren().contains(child));

        client.deleteList(child);
        assertFalse(root.getChildren().contains(child));

        client.refresh();
        root = client.getRootLists().get(0);
        assertNull(root.getChildren());
    }