@Test
public void testFindApplicationByName() {

    ApplicationSLA myApp = ApplicationSlaSample.CriticalSmall.build();
    when(storage.findByName(myApp.getAppName())).thenReturn(Observable.just(myApp));
    Optional<ApplicationSLA> existing = slaManagementService.findApplicationSLA(myApp.getAppName());
    assertThat(existing).hasValueSatisfying(v -> assertThat(v.getAppName()).isEqualTo(myApp.getAppName()));
    Optional<ApplicationSLA> absent = slaManagementService.findApplicationSLA("absent");
    assertThat(absent).isEmpty();
}