MetadataExtractor { public String getMarker() { Map<String, Long> currentMarker = getNavMarker(true); try { return new ObjectMapper().writeValueAsString(currentMarker); } catch (IOException e){ throw Throwables.propagate(e); } } MetadataExtractor(NavApiCient client, Integer limit); MetadataResultSet extractMetadata(); MetadataResultSet extractMetadata(String markerRep); MetadataResultSet extractMetadata(String startMarker,
                                           String endMarker); MetadataResultSet extractMetadata(String startMarkerRep,
                                           String endMarkerRep,
                                           String entitiesQuery,
                                           String relationsQuery); String getMarker();  }
@Test public void testCurrentMarker() { String res = extractor.getMarker(); assertEquals(res, marker1Rep); }