Assert.assertTrue(qe.execAsk());
}
@Test
public void query_with_auth_09() throws URISyntaxException {
QueryEngineHTTP qe = (QueryEngineHTTP) QueryExecutionFactory.sparqlService(serviceQuery, "ASK { }");
// Auth credentials for valid user with correct password using
// pre-emptive auth
ScopedAuthenticator authenticator = new ScopedAuthenticator(new URI(serviceQuery), "allowed", "password".toCharArray());
qe.setAuthenticator(new PreemptiveBasicAuthenticator(authenticator));
Assert.assertTrue(qe.execAsk());
}