Move finalizer registration into managed code

Also move Object.getClass into managed code.

Change-Id: If32674ac496116aaa82c461d8e6196e27fa7b591
diff --git a/src/jni_internal_test.cc b/src/jni_internal_test.cc
index d492deb..ee801be 100644
--- a/src/jni_internal_test.cc
+++ b/src/jni_internal_test.cc
@@ -313,7 +313,7 @@
 
   // Check that registering native methods is successful
   {
-    JNINativeMethod methods[] = {{"getClass", "()Ljava/lang/Class;", reinterpret_cast<void*>(BogusMethod)}};
+    JNINativeMethod methods[] = {{"notify", "()V", reinterpret_cast<void*>(BogusMethod)}};
     env_->RegisterNatives(jlobject, methods, 1);
   }
   EXPECT_FALSE(env_->ExceptionCheck());