AppCenter { @SuppressWarnings("WeakerAccess") public static void setWrapperSdk(WrapperSdk wrapperSdk) { getInstance().setInstanceWrapperSdk(wrapperSdk); }  static synchronized AppCenter getInstance(); @SuppressWarnings("WeakerAccess") static void setWrapperSdk(WrapperSdk wrapperSdk); @IntRange(from = VERBOSE, to = NONE) static int getLogLevel(); static void setLogLevel(@IntRange(from = VERBOSE, to = NONE) int logLevel); static void setLogUrl(String logUrl); @SuppressWarnings({"WeakerAccess", "SameReturnValue"}) static String getSdkVersion(); static void setCustomProperties(CustomProperties customProperties); static boolean isConfigured(); static boolean isRunningInAppCenterTestCloud(); static void configure(Application application, String appSecret); static void configure(Application application); @SafeVarargs static void start(Class<? extends AppCenterService>... services); @SafeVarargs static void start(Application application, String appSecret, Class<? extends AppCenterService>... services); @SafeVarargs static void start(Application application, Class<? extends AppCenterService>... services); @SafeVarargs static void startFromLibrary(Context context, Class<? extends AppCenterService>... services); static AppCenterFuture<Boolean> isEnabled(); static AppCenterFuture<Void> setEnabled(boolean enabled); static AppCenterFuture<UUID> getInstallId(); static AppCenterFuture<Boolean> setMaxStorageSize(long storageSizeInBytes); static void setUserId(String userId); @VisibleForTesting void setChannel(Channel channel); static final String LOG_TAG; }
@Test public void setWrapperSdkTest() { WrapperSdk wrapperSdk = new WrapperSdk(); AppCenter.setWrapperSdk(wrapperSdk); verifyStatic(); DeviceInfoHelper.setWrapperSdk(wrapperSdk); AppCenter.start(mApplication, DUMMY_APP_SECRET, DummyService.class); verify(mChannel, never()).invalidateDeviceCache(); wrapperSdk = new WrapperSdk(); AppCenter.setWrapperSdk(wrapperSdk); verify(mChannel).invalidateDeviceCache(); }