### Question:
ConfigFileService { public String getLocalPath(String path) { if (CloudConfigResourceService.isCloudConfigResource(path) && cloudConfigResourceService != null) { path = cloudConfigResourceService.getLocalPath(path); } verifyLocalPath(path); return path; } ConfigFileService(CloudConfigResourceService cloudConfigResourceService); String getLocalPath(String path); String getLocalPathForContents(String contents, String path); String getContents(String path);  }### Answer:
@Test void getLocalPathWhenFileExists() throws IOException { createExpectedFile(); String fileName = configFileService.getLocalPath(TEST_FILE_PATH); assertThat(fileName).isEqualTo(TEST_FILE_PATH); }
@Test void getLocalPathWhenFileDoesNotExist() { RuntimeException exception = assertThrows(RuntimeException.class, () -> configFileService.getLocalPath(TEST_FILE_PATH)); assertThat(exception.getMessage()).contains(TEST_FILE_PATH); }