    @Test
    public void testCategoryId() throws IOException {

        dataSourceProperties.put("path", TEST_PATH);
        dataSourceProperties.put("path", TEST_PATH);
        results.add(mock(Resource.class));
        when(request.getParameter("root")).thenReturn("rootPath");
        rootResourceProperties.put(CommerceConstants.PN_COMMERCE_TYPE, Constants.CATEGORY);
        rootResourceProperties.put(Constants.CIF_ID, "0");

        servlet.doGet(request, response);

        assertNotNull(queryStringSample);
        assertTrue(queryStringSample.contains("\"" + CATEGORY_PATH_PARAMETER + "\":\"rootPath\""));
        assertTrue(queryStringSample.contains("\"" + CATEGORY_ID_PARAMETER + "\":\"0\""));
    }