Test for JavaObject::GetMethod.