@Test(expectedExceptions = ProfilingRuleException.class)
 public void testSimpleLike()
     throws ProfilingRuleException, URISyntaxException, MalformedURLException {
   rule = new GenericObjectProfilingRule(getSimpleLike(), new CogitoNLPEngineImpl(endpoint), null);
   rule.run(null);
   Collection<Interest> actual = rule.getInterests();
   Assert.assertEquals(actual.size(), 0);
 }
 @Test
 public void testAnotherSimpleShare()
     throws ProfilingRuleException, URISyntaxException, MalformedURLException {
   rule =
       new GenericObjectProfilingRule(
           getAnotherSimpleFeed(), new CogitoNLPEngineImpl(endpoint), null);
   rule.run(null);
   Collection<Interest> actual = rule.getInterests();
   Assert.assertEquals(actual.size(), 4);
 }
 @Test
 public void testComplexShare()
     throws ProfilingRuleException, URISyntaxException, MalformedURLException {
   rule =
       new GenericObjectProfilingRule(getComplexFeed(), new CogitoNLPEngineImpl(endpoint), null);
   rule.run(null);
   Collection<Interest> actual = rule.getInterests();
   Assert.assertEquals(actual.size(), 8);
   Assert.assertTrue(
       actual.contains(new Interest("sport", new URI("http://dati.rai.tv/category/sport"))));
   Assert.assertTrue(
       actual.contains(new Interest("cinema", new URI("http://dati.rai.tv/category/cinema"))));
   Assert.assertTrue(
       actual.contains(new Interest("internet", new URI("http://dati.rai.tv/category/internet"))));
 }