AnswerSyncer { public static void syncAnswers(final IQuestion q, final String endpoint) throws ExecutionException { syncAnswers(q, endpoint, -1); }  static void syncAnswers(final IQuestion q, final String endpoint); static void syncAnswers(final IQuestion q, final String endpoint, final int queryTimeoutInSecs); static void syncAnswers(final List<IQuestion> questions, final String endpoint); static void syncAnswers(final List<IQuestion> questions, final String endpoint, final int queryTimeoutInSecs);  }
@Test public void prefixResolverTest() { String query = "PREFIX dbo: <http: String answer = "http: IQuestion question = new Question(); question.setSparqlQuery(query); try { AnswerSyncer.syncAnswers(question, SPARQLEndpoints.DBPEDIA_ORG); } catch (ExecutionException e) { e.printStackTrace(); Assert.fail(); } ArrayList<String> answers = Lists.newArrayList(question.getGoldenAnswers()); Assert.assertTrue("More than one answer or no answer", answers.size() == 1); Assert.assertTrue("Answer is not correct", answer.equals(answers.get(0))); log.debug("Answer: \n" + answers.get(0)); }