// Path: src/de/neuland/firefly/web/ApplicationStartupEvent.java
// public class ApplicationStartupEvent extends AbstractEvent {
//     @Override public String toString() {
//         return getClass().getSimpleName();
//     }
// }


import de.hybris.platform.servicelayer.cluster.ClusterService;
import de.hybris.platform.servicelayer.tenant.TenantService;
import de.neuland.firefly.web.ApplicationStartupEvent;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import static org.mockito.Mockito.verify;
package de.neuland.firefly;




@RunWith(MockitoJUnitRunner.class)
public class MigrationOnStartupListenerTest {
    @Mock private FireflyService fireflyService;

    @Test
    public void shouldStartAutomaticMigration() {
        // given
        MigrationOnStartupListener listener = new MigrationOnStartupListener(
            fireflyService,
            true);
        // when
// Path: src/de/neuland/firefly/web/ApplicationStartupEvent.java
// public class ApplicationStartupEvent extends AbstractEvent {
//     @Override public String toString() {
//         return getClass().getSimpleName();
//     }
// }


// Path: testsrc/de/neuland/firefly/MigrationOnStartupListenerTest.java
import de.hybris.platform.servicelayer.cluster.ClusterService;
import de.hybris.platform.servicelayer.tenant.TenantService;
import de.neuland.firefly.web.ApplicationStartupEvent;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import static org.mockito.Mockito.verify;

package de.neuland.firefly;




@RunWith(MockitoJUnitRunner.class)
public class MigrationOnStartupListenerTest {
    @Mock private FireflyService fireflyService;

    @Test
    public void shouldStartAutomaticMigration() {
        // given
        MigrationOnStartupListener listener = new MigrationOnStartupListener(
            fireflyService,
            true);
        // when
        listener.onApplicationEvent(new ApplicationStartupEvent());