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);
assertTrue(sentimentFS != null);
assertTrue(sentimentFS.getSentimentType() != null
&& "negative".equals(sentimentFS.getSentimentType()));
assertTrue(sentimentFS.getScore() != null && Double.valueOf(sentimentFS.getScore()) < 0);
} catch (Exception e) {
e.printStackTrace();
fail(e.toString());
}
}