final String language = "test/language";
EvaluatorModelRole mcr = ec.getModel();
mcr.getData().setLanguage(language);
final FeedProvider.RenderingInfo expectedRenderingInfo = new FeedProvider.RenderingInfo("", Color.black, "", Color.black, false);
EvaluatorProvider ep = Mockito.mock(EvaluatorProvider.class);
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()));
}