int returnVal = 0;
  public static void main(String[] args) throws Exception {    System.loadLibrary("TestJNIDirectBuffers");    if (args.length!=0) {      if (args[0].equals("-quiet")) {        verbose = false;                setVerboseOff();      }    }    int returnValue;        ByteBuffer buffer = ByteBuffer.allocateDirect(1);    returnValue = testBuffer(buffer);    checkTest(returnValue, true, "testBuffer -- A");    long address = getStaticNativeAddress();    long capacity = getStaticNativeCapacity();    int returnVal = 0;    ByteBuffer native_buffer = newByteBuffer(address, capacity);    if (capacity != native_buffer.capacity()) {      printVerbose("Wrong capacity: " + capacity + " != " + native_buffer.capacity());      checkTest(0, false, "CheckCapacity");    }    long buffer_address = getAddress(native_buffer);    if (address != buffer_address) {      printVerbose("Wrong address: " + address + " != " + buffer_address);      checkTest(0, false, "CheckAddress");    }          returnValue = testBuffer(native_buffer);    checkTest(returnValue, true, "testBuffer -- B");    returnValue = testBuffer2(native_buffer);    checkTest(returnValue, true, "testBuffer2");    if (allTestPass) {      System.out.println("PASS: TestJNIDirectBuffers");    } else {      System.out.println("FAIL: TestJNIDirectBuffers");    }  }