@Test
public void whenHsqlDatabaseManagerTaskAcceptsItShouldRegister() throws Exception {

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