The JNIEnv should exactly behave like the [spec](https://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/functions.html) says. In order to ensure this is the case, there need to be tests.