ParseCorePlugins { public void registerAnalyticsController(ParseAnalyticsController controller) { if (!analyticsController.compareAndSet(null, controller)) { throw new IllegalStateException( "Another analytics controller was already registered: " + analyticsController.get()); } } private  ParseCorePlugins(); static ParseCorePlugins getInstance(); ParseObjectController getObjectController(); void registerObjectController(ParseObjectController controller); ParseUserController getUserController(); void registerUserController(ParseUserController controller); ParseSessionController getSessionController(); void registerSessionController(ParseSessionController controller); ParseCurrentUserController getCurrentUserController(); void registerCurrentUserController(ParseCurrentUserController controller); ParseQueryController getQueryController(); void registerQueryController(ParseQueryController controller); ParseFileController getFileController(); void registerFileController(ParseFileController controller); ParseAnalyticsController getAnalyticsController(); void registerAnalyticsController(ParseAnalyticsController controller); ParseCloudCodeController getCloudCodeController(); void registerCloudCodeController(ParseCloudCodeController controller); ParseConfigController getConfigController(); void registerConfigController(ParseConfigController controller); ParsePushController getPushController(); void registerPushController(ParsePushController controller); ParsePushChannelsController getPushChannelsController(); void registerPushChannelsController(ParsePushChannelsController controller); ParseCurrentInstallationController getCurrentInstallationController(); void registerCurrentInstallationController(ParseCurrentInstallationController controller); ParseAuthenticationManager getAuthenticationManager(); void registerAuthenticationManager(ParseAuthenticationManager manager); ParseDefaultACLController getDefaultACLController(); void registerDefaultACLController(ParseDefaultACLController controller); LocalIdManager getLocalIdManager(); void registerLocalIdManager(LocalIdManager manager); ParseObjectSubclassingController getSubclassingController(); void registerSubclassingController(ParseObjectSubclassingController controller);  }
@Test public void testRegisterAnalyticsController() { ParseAnalyticsController controller = new TestAnalyticsController(); ParseCorePlugins.getInstance().registerAnalyticsController(controller); assertSame(controller, ParseCorePlugins.getInstance().getAnalyticsController()); }