### Question:
GQLToQueryBuilderConverter { public static Map<String, String> addLimitAndOffset(final SlingHttpServletRequest request, Map<String, String> map) { if (has(request, CF_LIMIT)) { final String offset = String.valueOf(getOffset(request)); final String limit = String.valueOf(getLimit(request)); map.put("p.offset", String.valueOf(offset)); map.put("p.limit", limit); } else { map.put("p.limit", String.valueOf(DEFAULT_LIMIT)); } return map; } private  GQLToQueryBuilderConverter(); static boolean convertToQueryBuilder(final SlingHttpServletRequest request); static Map<String, String> addPath(final SlingHttpServletRequest request, Map<String, String> map); static Map<String, String> addType(final SlingHttpServletRequest request, Map<String, String> map); static Map<String, String> addName(final SlingHttpServletRequest request, Map<String, String> map); @SuppressWarnings("squid:S3776") static Map<String, String> addOrder(final SlingHttpServletRequest request, Map<String, String> map,
            final String queryString); static Map<String, String> addMimeType(final SlingHttpServletRequest request, Map<String, String> map); static Map<String, String> addTags(final SlingHttpServletRequest request, Map<String, String> map); @SuppressWarnings("squid:S1172") static Map<String, String> addFulltext(final SlingHttpServletRequest request, Map<String, String> map,
            final String queryString); static Map<String, String> addLimitAndOffset(final SlingHttpServletRequest request,
            Map<String, String> map); static Map<String, String> addProperty(final SlingHttpServletRequest request, Map<String, String> map,
            final String requestKey, final int count); static boolean isValidProperty(final String key); static boolean hasMany(SlingHttpServletRequest request, String key); static boolean has(SlingHttpServletRequest request, String key); static String get(SlingHttpServletRequest request, String key); static String[] getAll(SlingHttpServletRequest request, String key); static Map<String, String> put(SlingHttpServletRequest request, Map<String, String> map,
            String predicate, int group, boolean or); static Map<String, String> put(SlingHttpServletRequest request, Map<String, String> map,
            String requestKey, String predicate, int group, boolean or); static Map<String, String> putProperty(SlingHttpServletRequest request, Map<String, String> map,
            String requestKey, String predicate, int group, boolean or); static Map<String, String> putAll(Map<String, String> map, String predicate, String[] values,
            int group, boolean or); static Map<String, String> putAll(Map<String, String> map, String predicate, String predicateValue,
            String predicateSuffix, String[] values, int group, boolean or); static boolean isPage(final SlingHttpServletRequest request); static boolean isAsset(final SlingHttpServletRequest request); static String getPropertyPrefix(final SlingHttpServletRequest request); static int getLimit(final SlingHttpServletRequest request); static int getOffset(final SlingHttpServletRequest request);  }### Answer:
@Test public void addOffsetDefault() { Map<String, String> map = new HashMap<>(); MockSlingHttpServletRequest request = context.request(); GQLToQueryBuilderConverter.addLimitAndOffset(request, map); assertEquals(1, map.size()); assertThat(map, hasEntry("p.limit", "20")); }