### Question:
MobileAnalyticsManager { public static MobileAnalyticsManager getOrCreateInstance(Context context, String appId, String cognitoId ) throws InitializationException { CognitoCachingCredentialsProvider cognitoProvider = new CognitoCachingCredentialsProvider( context, cognitoId, Regions.US_EAST_1 ); return getOrCreateInstance(context, appId, Regions.US_EAST_1, cognitoProvider, null, null); } MobileAnalyticsManager(final Context appContext, final String appId, final Regions region,
            final AWSCredentialsProvider credentialsProvider,
            AnalyticsConfig options,
            final AnalyticsCallback<MobileAnalyticsManager> initCompletionCallback);   MobileAnalyticsManager(final Context appContext, final String appId, final Regions region,
            final AWSCredentialsProvider credentialsProvider,
            AnalyticsConfig options,
            final AnalyticsCallback<MobileAnalyticsManager> initCompletionCallback,
            AnalyticsContext analyticsContext, InternalEventClient eventClient,
            InternalSessionClient sessionClient, AmazonMobileAnalyticsClient ersClient); EventClient getEventClient(); SessionClient getSessionClient(); static MobileAnalyticsManager getInstance(String appId); static MobileAnalyticsManager getOrCreateInstance(Context context, String appId,
            String cognitoId
            ); static MobileAnalyticsManager getOrCreateInstance(Context context, String appId,
            Regions region, AWSCredentialsProvider credentialsProvider
            ); static MobileAnalyticsManager getOrCreateInstance(Context context, String appId,
            Regions region, AWSCredentialsProvider credentialsProvider,
            AnalyticsConfig options); static MobileAnalyticsManager getOrCreateInstance(Context context, String appId,
            Regions region, AWSCredentialsProvider credentialsProvider,
            AnalyticsCallback<MobileAnalyticsManager> initCompletionCallback); static MobileAnalyticsManager getOrCreateInstance(Context context, String appId,
            Regions region,
            AWSCredentialsProvider credentialsProvider,
            AnalyticsConfig options,
            AnalyticsCallback<MobileAnalyticsManager> initCompletionCallback);  }### Answer:
@Test public void initAndTestNewConstructor() { analyticsClient = MobileAnalyticsManager.getOrCreateInstance(new ContextWithPermissions( context), uniqueAnalyticsTag1 + (new Random()).nextInt(), "COGNITOID"); assertNotNull(analyticsClient); }