session.getRootNode().addNode(TextUtil.relativizePath(fileName));
InputStream inputStream = new ByteArrayInputStream(fileContent.getBytes());
TestUtils.addContent(session, fileName, inputStream, defaultFileNodeType, MediaType.TEXT_PLAIN);
ContainerResponse response = service(WebDAVMethods.SEARCH, pathWs, "", null, basicSql.getBytes());
assertEquals(HTTPStatus.MULTISTATUS, response.getStatus());
SearchResultResponseEntity entity = (SearchResultResponseEntity)response.getEntity();
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
entity.write(outputStream);
String result = outputStream.toString();
assertTrue(result.contains(fileName));
}