@Test
public void testNativeLibraryChecker() {

  ExitUtil.disableSystemExit();
  // help should return normally
  NativeLibraryChecker.main(new String[] {"-h"});
  // illegal argmuments should exit
  expectExit(new String[] {"-a", "-h"});
  expectExit(new String[] {"aaa"});
  if (NativeCodeLoader.isNativeCodeLoaded()) {
    // no argument should return normally
    NativeLibraryChecker.main(new String[0]);
  } else {
    // no argument should exit
    expectExit(new String[0]);
  }
}