### Question:
ConsistencyWriter { static void getLsnAndGlobalCommittedLsn(StoreResponse response, Utils.ValueHolder<Long> lsn, Utils.ValueHolder<Long> globalCommittedLsn) { lsn.v = -1l; globalCommittedLsn.v = -1l; String headerValue; if ((headerValue = response.getHeaderValue(WFConstants.BackendHeaders.LSN)) != null) { lsn.v = Long.parseLong(headerValue); } if ((headerValue = response.getHeaderValue(WFConstants.BackendHeaders.GLOBAL_COMMITTED_LSN)) != null) { globalCommittedLsn.v = Long.parseLong(headerValue); } } 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") public void getLsnAndGlobalCommittedLsn() { ImmutableList.Builder<Map.Entry<String, String>> builder = new ImmutableList.Builder<>(); builder.add(new AbstractMap.SimpleEntry<>(WFConstants.BackendHeaders.LSN, "3")); builder.add(new AbstractMap.SimpleEntry<>(WFConstants.BackendHeaders.GLOBAL_COMMITTED_LSN, "2")); ImmutableList<Map.Entry<String, String>> headers = builder.build(); StoreResponse sr = new StoreResponse(0, headers, (String) null); Utils.ValueHolder<Long> lsn = Utils.ValueHolder.initialize(-2l); Utils.ValueHolder<Long> globalCommittedLsn = Utils.ValueHolder.initialize(-2l); ConsistencyWriter.getLsnAndGlobalCommittedLsn(sr, lsn, globalCommittedLsn); assertThat(lsn.v).isEqualTo(3); assertThat(globalCommittedLsn.v).isEqualTo(2); }