CliService { public Optional<FileSystemResource> getLocalCliFile() { Optional<FileSystemResource> fileSystemResource = Optional.empty(); Path cliPath = Paths.get(cliConfig.getFile()); if (Files.exists(cliPath)) { fileSystemResource = Optional.of(new FileSystemResource(cliPath.toFile())); } return fileSystemResource; }  Optional<FileSystemResource> getLocalCliFile(); String getCliUrl(); String generateInstallCliScript(String requestUrl, String installDirectory); String getVersion();  }
@Test public void getLocalCliFileDefaultNoFile() { Optional<FileSystemResource> localCliFile = cliService.getLocalCliFile(); assertFalse(localCliFile.isPresent()); }