@Test
public void testHangingGet() throws Exception {
client.addConcept(testTopic, true);
long start = System.currentTimeMillis();
Model model = client.getResult(testTopic, 0, 0, 30);
long end = System.currentTimeMillis();
double durationSeconds = (end - start) / 1000.0;
logger.debug("took " + durationSeconds + " seconds");
// add 5 seconds for latency.
assertTrue("took " + durationSeconds + " seconds", durationSeconds <= 35.0);
assertNotNull(model);
Model responseInfo = model.filter(null, null, null, PRIMAL.RESPONSE_INFO);
assertTrue(responseInfo.contains(null, PRIMAL.STATUS, null));
assertTrue(responseInfo.contains(null, PRIMAL.CONCEPT_COUNT, null));
assertTrue(responseInfo.contains(null, PRIMAL.CONTENT_COUNT, null));
assertTrue(responseInfo.contains(null, PRIMAL.MIN_SEMANTIC_COVERAGE, null));
assertTrue(responseInfo.contains(null, PRIMAL.TERM_COVERAGE, null));
// writeModel(model, RDFFormat.TRIG, new FileOutputStream(new
// File("/Users/jeen/test-primal.trig")));
client.deleteConcept(testTopic);