String doc = "The BBC's Jim Muir says the Tunisians have been struggling to cope with the deluge of refugees";
String xmlPath = "desc/TextSentimentAnalysisAEDescriptor.xml";
try {
Map<String, Object> parameterSettings = new HashMap<String, Object>();
parameterSettings.put("apikey", "04490000a72fe7ec5cb3497f14e77f338c86f2fe");
JCas sentimentJCas = TestUtils.executeAE(TestUtils.getAE(xmlPath, parameterSettings), doc);
List<SentimentFS> sentimentList = (List<SentimentFS>) TestUtils.getAllFSofType(
SentimentFS.type, sentimentJCas);
assertTrue(sentimentList != null);
assertTrue(sentimentList.size() == 1);
SentimentFS sentimentFS = sentimentList.get(0);