### Question:
GQLToQueryBuilderConverter { public static Map<String, String> addType(final SlingHttpServletRequest request, Map<String, String> map) { if (has(request, CF_TYPE)) { map = put(request, map, CF_TYPE, GROUP_TYPE, true); } 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 addType() { Map<String, String> map = new HashMap<>(); MockSlingHttpServletRequest request = context.request(); request.setParameterMap(ImmutableMap.<String, Object>builder().put("type", "cq:Page").build()); GQLToQueryBuilderConverter.addType(request, map); assertThat(map, hasEntry("2_group.1_type", "cq:Page")); assertThat(map, hasEntry("2_group.p.or", "true")); assertEquals(2, map.size()); }