@Test
 public void testW2OActivityJsonString() {
   LuceneSimpleTaggingProcessor processor =
       new LuceneSimpleTaggingProcessor("test", new String[] {"$.content"}, null, tags);
   processor.prepare(null);
   List<StreamsDatum> datums = processor.process(new StreamsDatum(W2O_ACTIVITY_JSON));
   assertNotNull(datums);
   assertEquals(1, datums.size());
   StreamsDatum datum = datums.get(0);
   assertNotNull(datum);
   assertNotNull(datum.getDocument());
   assertTrue(datum.getDocument() instanceof String);
   String json = (String) datum.getDocument();
   List<String> tags = JsonPath.read(json, "$.extensions.w2o.tags");
   assertEquals(1, tags.size());
   assertTrue(tags.contains("soccer"));
   tags = JsonPath.read(json, "$.extensions.w2o.contentTags");
   assertEquals(1, tags.size());
   assertTrue(tags.contains("soccer"));
 }
 @Test
 public void testLinkExpanderJsonString() {
   LuceneSimpleTaggingProcessor processor =
       new LuceneSimpleTaggingProcessor("test", new String[] {"$.body"}, null, tags);
   processor.prepare(null);
   List<StreamsDatum> datums = processor.process(new StreamsDatum(LINK_EXPANDER_JSON));
   assertNotNull(datums);
   assertEquals(1, datums.size());
   StreamsDatum datum = datums.get(0);
   assertNotNull(datum);
   assertNotNull(datum.getDocument());
   assertTrue(datum.getDocument() instanceof String);
   String json = (String) datum.getDocument();
   List<String> tags = JsonPath.read(json, "$.extensions.w2o.tags");
   assertEquals(1, tags.size());
   assertTrue(tags.contains("baseball"));
   tags = JsonPath.read(json, "$.extensions.w2o.contentTags");
   assertEquals(1, tags.size());
   assertTrue(tags.contains("baseball"));
 }
 @Test
 public void testW2OActivityObject() throws Exception {
   LuceneSimpleTaggingProcessor processor =
       new LuceneSimpleTaggingProcessor("test", new String[] {"$.content"}, null, tags);
   processor.prepare(null);
   List<StreamsDatum> datums =
       processor.process(new StreamsDatum(mapper.readValue(W2O_ACTIVITY_JSON, W2OActivity.class)));
   assertNotNull(datums);
   assertEquals(1, datums.size());
   StreamsDatum datum = datums.get(0);
   assertNotNull(datum);
   assertNotNull(datum.getDocument());
   assertTrue(datum.getDocument() instanceof W2OActivity);
   String json = (String) mapper.writeValueAsString(datum.getDocument());
   List<String> tags = JsonPath.read(json, "$.extensions.w2o.tags");
   assertEquals(1, tags.size());
   assertTrue(tags.contains("soccer"));
   tags = JsonPath.read(json, "$.extensions.w2o.contentTags");
   assertEquals(1, tags.size());
   assertTrue(tags.contains("soccer"));
 }