@Test
public void testDefaultApplicationSlaIsCreatedIfNotDefined() throws Exception {

    when(applicationStore.findByName(DEFAULT_APPLICATION)).thenReturn(
            Observable.error(new NotFoundException(ApplicationSLA.class, "missing"))
    );
    when(applicationStore.create(any())).thenReturn(Observable.empty());
    new ManagementSubsystemInitializer(configuration, applicationStore).enterActiveMode();
    verify(applicationStore, times(1)).findByName(DEFAULT_APPLICATION);
    verify(applicationStore, times(1)).create(any());
}