### Question:
Java7Support { public static boolean isSymLink(File file) { try { Object path = toPath.invoke(file); Boolean result = (Boolean) isSymbolicLink.invoke(null, path); return result.booleanValue(); } catch (IllegalAccessException e) { throw new RuntimeException(e); } catch (InvocationTargetException e) { throw new RuntimeException(e); } }  static boolean isSymLink(File file); static File readSymbolicLink(File symlink); static File createSymbolicLink(File symlink, File target); static void delete(File file); static boolean isAtLeastJava7();  }### Answer:
@Test public void testIsSymLink() throws Exception { File file = new File("."); if (Java7Support.isAtLeastJava7()) { assertFalse(Java7Support.isSymLink(file)); } }