### Question:
MapboxTelemetry implements FullQueueCallback, ServiceTaskCallback { public boolean isCnRegion() { if (checkRequiredParameters(sAccessToken.get(), userAgent)) { return telemetryClient.isCnRegion(); } return false; } MapboxTelemetry(Context context, String accessToken, String userAgent);   MapboxTelemetry(Context context, String accessToken, String userAgent, EventsQueue queue,
                  TelemetryClient telemetryClient, Callback httpCallback, SchedulerFlusher schedulerFlusher,
                  Clock clock, TelemetryEnabler telemetryEnabler, ExecutorService executorService); @Override // Callback is dispatched on background thread void onFullQueue(List<Event> fullQueue); @Override void onTaskRemoved(); boolean push(Event event); boolean enable(); boolean disable(); boolean updateSessionIdRotationInterval(SessionInterval interval); void updateDebugLoggingEnabled(boolean isDebugLoggingEnabled); void updateUserAgent(String userAgent); boolean updateAccessToken(String accessToken); boolean addTelemetryListener(TelemetryListener listener); boolean removeTelemetryListener(TelemetryListener listener); boolean addAttachmentListener(AttachmentListener listener); boolean removeAttachmentListener(AttachmentListener listener); @SuppressWarnings("WeakerAccess") @Deprecated synchronized boolean setBaseUrl(String eventsHost); boolean isCnRegion(); synchronized void setCnRegion(boolean setCnRegion);  }### Answer:
@Test public void checkNotCnRegion() { Context mockedContext = mock(Context.class, RETURNS_DEEP_STUBS); TelemetryClient mockedTelemetryClient = mock(TelemetryClient.class); Callback mockedHttpCallback = mock(Callback.class); MapboxTelemetry theMapboxTelemetry = obtainMapboxTelemetryWith(mockedContext, mockedTelemetryClient, mockedHttpCallback); when(mockedTelemetryClient.isCnRegion()).thenReturn(false); assertFalse(theMapboxTelemetry.isCnRegion()); }
@Test public void checkCnRegion() { Context mockedContext = mock(Context.class, RETURNS_DEEP_STUBS); TelemetryClient mockedTelemetryClient = mock(TelemetryClient.class); Callback mockedHttpCallback = mock(Callback.class); MapboxTelemetry theMapboxTelemetry = obtainMapboxTelemetryWith(mockedContext, mockedTelemetryClient, mockedHttpCallback); when(mockedTelemetryClient.isCnRegion()).thenReturn(true); assertTrue(theMapboxTelemetry.isCnRegion()); }