@Test
public void whenExecuteInvalidItShouldThrow() throws Exception {

    task = new HsqlDatabaseManagerSwingTask(URL_HSQLDB);
    task.execution = mock(Runnable.class);
    task.ok = false;
    try {
        task.execute(mock(ImmutableMultimap.class), mock(PrintWriter.class));
        failBecauseExceptionWasNotThrown(IllegalStateException.class);
    } catch (IllegalStateException e) {
        verify(task.execution, never()).run();
    }
}