@Test
public void testCategorical() throws Exception{

    Tika tika = getTika("tika-config-sentiment-opennlp-cat.xml");
     if (tika == null) {
         return;
     }
     String text = "Whatever, I need some cooling off time!";
     ByteArrayInputStream stream = new ByteArrayInputStream(text.getBytes(Charset.defaultCharset()));
     Metadata md = new Metadata();
     tika.parse(stream, md);
     String sentiment = md.get("Sentiment");
     assertNotNull(sentiment);
     assertEquals("angry", sentiment);
}