NativeIO { static long getMemlockLimit() { return isAvailable() ? getMemlockLimit0() : 0; }  static boolean isAvailable(); static String getOwner(FileDescriptor fd); static FileDescriptor getShareDeleteFileDescriptor(
      File f, long seekOffset); static FileOutputStream getCreateForWriteFileOutputStream(File f, int permissions); static void renameTo(File src, File dst); @Deprecated static void link(File src, File dst); static void copyFileUnbuffered(File src, File dst);  }
@Test(timeout=10000) public void testGetMemlockLimit() throws Exception { assumeTrue(NativeIO.isAvailable()); NativeIO.getMemlockLimit(); }