Tests for JITting and collecting JNI stubs.