@Test
public void whenHsqlDatabaseManagerTaskDeclinesItShouldNeverRegister() throws Exception {

    when(components.hsqlDatabaseManagerSwingTask().shouldRegister(anyMap())).thenReturn(false);
    application.run(config, environment);
    verify(environment.admin(), never()).addTask(components.hsqlDatabaseManagerSwingTask());
}