@Test
public void testDescribeQuery() {
final String queryString = "DESCRIBE <http://example.org/book/book1>";
SimpleDescribeQuery describeQuery = new SimpleDescribeQuery();
describeQuery.addResourceToDescribe(new ResourceOrVariable(
new UriRef("http://example.org/book/book1")));
Assert.assertTrue(describeQuery.toString()
.replaceAll("( |\n)+", " ").trim().equals(queryString));
}