### Question:
GodEyeHelper { public static void stopMethodCanaryRecording(String tag) throws UninstallException { final MethodCanary methodCanary = GodEye.instance().getModule(GodEye.ModuleName.METHOD_CANARY); methodCanary.stopMonitor(tag); }  static void onPageLoaded(Object page); static void onFragmentPageVisibilityChange(Object fragmentPage, boolean visible); static void onAppStartEnd(StartupInfo startupInfo); static void onNetworkEnd(NetworkInfo networkInfo); @Deprecated static void inspectView(); static void startMethodCanaryRecording(String tag); static void stopMethodCanaryRecording(String tag); static boolean isMethodCanaryRecording(String tag); static void setMonitorAppInfoConext(AppInfoConext appInfoConext); static void startMonitor(int port); static void startMonitor(); static void shutdownMonitor();  }### Answer:
@Test public void stopMethodCanaryRecordingWhenNotInstalled() { try { GodEye.instance().uninstall(); GodEyeHelper.stopMethodCanaryRecording("tag"); fail(); } catch (UninstallException ignore) { } }
@Test public void stopMethodCanaryRecordingSuccess() { try { GodEye.instance().uninstall(); GodEye.instance().install(GodEyeConfig.noneConfigBuilder().withMethodCanaryConfig(new MethodCanaryConfig()).build()); GodEyeHelper.stopMethodCanaryRecording("tag"); } catch (UninstallException ignore) { fail(); } }