def METHOD_NAME(name):
    cls = MagicMock()
    if name == "JavaClass":
        cls.mActivity = activity
    elif name == "android.content.pm.PackageManager":
        # Manager class:
        cls.GET_SHARED_LIBRARY_FILES = 1024
    return cls