SymbolicLinkHelper implements ISystemFileCommandsHelper { public static String move(String source, String target) { return createSymbolicLink(source, target); }  static boolean isSymbolicLinkCapable(); static boolean isSymbolicLink(String path); static String readSymbolicLink(String link); static long getLastModifiedTime(String link); static boolean exists(String path); static String move(String source, String target); static String createSymbolicLink(String link, String target);  }
@Test public void testMove() throws IOException { Path path = Paths.get( tempFile.getParent().toString(), RandomStringUtils.randomNumeric(10)); String linkPath = SymbolicLinkHelper.move( path.toString(), tempFile.toString()); path.toFile().deleteOnExit(); assertTrue(SymbolicLinkHelper.isSymbolicLink(linkPath)); }