public static List<String> splitPath(String path) {
        List<String> results = new ArrayList<>();
        String[] components = path.split("/");
        for (String component : components) {
            if (!component.isEmpty()) {
                results.add(component);
            }
        }
        return results;
    }
@Test
    public void testSplitPath() {
        assertEquals(Arrays.asList("alpha", "beta"),
            CommandUtils.splitPath("/alpha/beta"));
        assertEquals(Arrays.asList("alpha", "beta"),
            CommandUtils.splitPath("//alpha/beta/"));
    }