### Question:
PathUtils { @NotNull public static String unixPathEndingWithSeparator(@NotNull String first, String... more) { return separatorsToUnix(Paths.get(first, more).toString()) + UNIX_PATH_SEPARATOR; } private  PathUtils(); static String unixPath(@NotNull String first, String... more); static String unixPath(@NotNull Path path); @NotNull static String unixPathEndingWithSeparator(@NotNull String first, String... more); @NotNull static String unixPathEndingWithSeparator(@NotNull Path path); static String extractName(String nameWithPath); static String extractPath(String nameWithPath); static String extractNameFromUniqueEntityName(String uniqueName);  }### Answer:
@Test void unixPathEndingWithSeparator() { assertEquals("test/", PathUtils.unixPathEndingWithSeparator("test")); assertEquals("test/path/", PathUtils.unixPathEndingWithSeparator("test", "path")); assertEquals("test/path/", PathUtils.unixPathEndingWithSeparator("test\\path")); assertEquals("test/path/subpath/", PathUtils.unixPathEndingWithSeparator("test", "path", "subpath")); assertEquals("test/path/subpath/", PathUtils.unixPathEndingWithSeparator("test\\path\\subpath")); }
@Test void unixPathEndingWithSeparatorFromPathObject() { assertEquals("test/", PathUtils.unixPathEndingWithSeparator(Paths.get("test"))); assertEquals("test/path/", PathUtils.unixPathEndingWithSeparator(Paths.get("test", "path"))); assertEquals("test/path/subpath/", PathUtils.unixPathEndingWithSeparator(Paths.get("test", "path", "subpath"))); }