AbstractResumeBreakPointManager implements ResumeBreakPointManager, Closeable { protected final String getIncrementalPositionData() { JsonObject result = new JsonObject(); for (Entry<String, PositionManager<IncrementalPosition>> entry : incrementalPositionManagerMap.entrySet()) { result.add(entry.getKey(), entry.getValue().getPosition().toJson()); } return result.toString(); }  @Override void close();  }
@Test public void assertGetIncrementalPositionData() { resumeBreakPointManager.getIncrementalPositionManagerMap().put("ds0", new BasePositionManager<>(new PlaceholderIncrementalPosition())); resumeBreakPointManager.getIncrementalPositionManagerMap().put("ds1", new BasePositionManager<>(new PlaceholderIncrementalPosition())); assertThat(resumeBreakPointManager.getIncrementalPositionData(), is(incrementalPosition)); }