@Before public void before() { when(objectMapper.getStateEngine()).thenReturn(writeStateEngine); version = 13L; subject = new CloseableWriteState(version, objectMapper, null); }
try (CloseableWriteState writeState = new CloseableWriteState(toVersion, objectMapper, readStates.current())) { task.populate(writeState);