}
}
@Test
public void testInvalidAPIKey() {
NCBOClient ncbo2 = new NCBOClient("123", "file:/etc/gwsync/doid.owl");
try {
System.err.println("|----Testing Invalid API Key ----|");
ncbo2.annotate(text);
fail("Should have thrown exception for invalid API key.");
} catch (HttpResponseException e) {
System.err.println("|-----------End test-------------|");
} finally {
ncbo2.close();
}
}