More JNI test code.