@Test
	public void testClearCache() {
		Path dir = jbangTempDir;
		environmentVariables.set(Settings.JBANG_CACHE_DIR, dir.toString());
		assertThat(Files.isDirectory(dir), is(true));

		cli.execute("cache", "clear", "--all");

		assertThat(Files.isDirectory(dir.resolve("urls")), is(false));
		assertThat(Files.isDirectory(dir.resolve("jars")), is(false));
		assertThat(Files.isDirectory(dir.resolve("jdks")), is(false));
		assertThat(Files.notExists(Settings.getCacheDependencyFile()), is(true));
	}
@Test public void testInit() { cli.parseArgs("--init", "x.java", "y.java");
      assertThat(main.script, is("x.java")); assertThat(main.params,
      is(Arrays.asList("x.java", "y.java"))); }
src/test/java/dev/jbang/cli/TestArguments.java