@Test
public void exportScesimModel() throws IOException {

    importExportService.exportScesimModel(ImportExportType.CSV, simulationMock);
    verify(scenarioCsvImportExportMock, times(1)).exportData(eq(simulationMock));
    when(scenarioCsvImportExportMock.exportData(any())).thenThrow(new IllegalStateException());
    assertThatThrownBy(() -> importExportService
            .exportScesimModel(ImportExportType.CSV, simulationMock))
            .isInstanceOf(GenericPortableException.class);
}