    @Test
    @SuppressWarnings("unchecked")
    public void checkQueryParameters() throws Exception {

        String raml = IOUtils.resourceToString("/product-api.raml", Charset.forName("UTF-8"));
        Assert.assertNotNull(raml);

        String swagger = raml2Swagger.convertToSwagger(raml);
        Assert.assertNotNull(swagger);

        TypeReference<HashMap<String, Object>> typeRef = new TypeReference<HashMap<String, Object>>() {};
        Map<String, Object> json = objectMapper.readValue(swagger, typeRef);
        Assert.assertNotNull(json);

        Map<String, Object> paths = (Map<String, Object>)json.get("paths");
        Map<String, Object> path = (Map<String, Object>)paths.get("/{version}/cache/clear");
        Map<String, Object> method = (Map<String, Object>)path.get("get");
        List<Map<String, Object>> parameters = (List<Map<String, Object>>)method.get("parameters");
        Assert.assertEquals("There should be 4 parameters", 4, parameters.size());
        Assert.assertEquals("Parameter type should be 'query'", "query", parameters.get(0).get("in"));
    }