Migrate code to using wrapping JNI for exceptions Reviewed-by: phh, tschatzl
Adding a JNI verification wrapper for tests Reviewed-by: amenkov, sspitsyn, phh