StringBuffer queryStrBuf = new StringBuffer();
queryStrBuf.append("DESCRIBE <").append(resource).append(">");
Query q = QueryParser.getInstance().parse(queryStrBuf.toString());
Assert.assertTrue(DescribeQuery.class.isAssignableFrom(q.getClass()));
DescribeQuery describeQuery = (DescribeQuery) q;
Assert.assertTrue(describeQuery.getResourcesToDescribe().get(0)
.getResource().equals(new UriRef(resource)));
}