@Test(expected = CluecumberPluginException.class)
public void processedContentIoExceptionTest() throws Exception {

    Template template = mock(Template.class);
    doThrow(new IOException("Test", null)).when(template).process(any(PageCollection.class), any(Writer.class));
    PageCollection pageCollection = mock(PageCollection.class);
    String processedContent = pageWithChartRenderer.processedContent(template, pageCollection);
    assertThat(processedContent, is(""));
}