### Question:
ConsistencyWriter { boolean isGlobalStrongRequest(RxDocumentServiceRequest request, StoreResponse response) { if (this.serviceConfigReader.getDefaultConsistencyLevel() == ConsistencyLevel.Strong) { int numberOfReadRegions = -1; String headerValue = null; if ((headerValue = response.getHeaderValue(WFConstants.BackendHeaders.NUMBER_OF_READ_REGIONS)) != null) { numberOfReadRegions = Integer.parseInt(headerValue); } if (numberOfReadRegions > 0 && this.serviceConfigReader.getDefaultConsistencyLevel() == ConsistencyLevel.Strong) { return true; } } return false; } ConsistencyWriter(
            AddressSelector addressSelector,
            ISessionContainer sessionContainer,
            TransportClient transportClient,
            IAuthorizationTokenProvider authorizationTokenProvider,
            GatewayServiceConfigurationReader serviceConfigReader,
            boolean useMultipleWriteLocations); Single<StoreResponse> writeAsync(
            RxDocumentServiceRequest entity,
            TimeoutHelper timeout,
            boolean forceRefresh);  }### Answer:
@Test(groups = "unit", dataProvider = "globalStrongArgProvider") public void isGlobalStrongRequest(ConsistencyLevel defaultConsistencyLevel, RxDocumentServiceRequest req, StoreResponse storeResponse, boolean isGlobalStrongExpected) { initializeConsistencyWriter(false); Mockito.doReturn(defaultConsistencyLevel).when(this.serviceConfigReader).getDefaultConsistencyLevel(); assertThat(consistencyWriter.isGlobalStrongRequest(req, storeResponse)).isEqualTo(isGlobalStrongExpected); }