@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);
}