"'field': 'http:\\/\\/www.test.org\\/test#field', " +
"}]" +
"}",
false); //expect BadRequest
//now execute the test
RequestExecutor re = executeQuery(test);
JSONObject jQuery = assertResponseQuery(re.getContent());
JSONArray jConstraints = jQuery.optJSONArray("constraints");
assertNotNull("Result Query does not contain the constraints Array",jConstraints);
assertTrue("Result Query Constraint Array does not contain the expected Constraint",
jConstraints.length() == 1);
JSONObject jConstraint = jConstraints.optJSONObject(0);