@Test
public void testGetApplicationByName() throws Exception {

    ApplicationSLA myApp = ApplicationSlaSample.CriticalSmall.build();
    when(storage.findByName(myApp.getAppName())).thenReturn(Observable.just(myApp));
    ApplicationSLA result = slaManagementService.getApplicationSLA(myApp.getAppName());
    assertThat(result.getAppName()).isEqualTo(myApp.getAppName());
    assertThat(result.getSchedulerName()).isEqualTo(myApp.getSchedulerName());
}