e = ec.getCapability(Evaluator.class);
registry.addProvider(ep);
Executor executor = Mockito.mock(Executor.class);
Mockito.when(executor.evaluate(Mockito.anyMap(), Mockito.anyList())).thenReturn(expectedRenderingInfo);
Mockito.when(ep.getLanguage()).thenReturn(language);
Mockito.when(ep.compile(Mockito.anyString())).thenReturn(executor);
Assert.assertSame(expectedRenderingInfo, e.evaluate(Collections.<String,List<Map<String,String>>>emptyMap(), Collections.<FeedProvider>emptyList()));
}
@Test