@Test(expected = GeneratorException.class)
public void testRuntimeExceptionOnRender() throws GeneratorException, IOException {

    Mockito.when(mockRenderer.render(mockSkill, en_US)).thenThrow(new IllegalArgumentException("test"));
    Mockito.when(mockDir.exists()).thenReturn(true);
    underTest.generate();
    Mockito.verify(mockWriter).writeValue(mockFile, mockModel);
}