### Question:
NativeCodeLoader { public static boolean isNativeCodeLoaded() { return nativeCodeLoaded; }  static boolean isNativeCodeLoaded(); static native boolean buildSupportsSnappy(); boolean getLoadNativeLibraries(Configuration conf); void setLoadNativeLibraries(Configuration conf, 
                                     boolean loadNativeLibraries);  }### Answer:
@Test public void testNativeCodeLoaded() { if (requireTestJni() == false) { LOG.info("TestNativeCodeLoader: libhadoop.so testing is not required."); return; } if (!NativeCodeLoader.isNativeCodeLoaded()) { fail("TestNativeCodeLoader: libhadoop.so testing was required, but " + "libhadoop.so was not loaded."); } LOG.info("TestNativeCodeLoader: libhadoop.so is loaded."); }