@Test
public void getApplicationByName() {

    String targetName = SAMPLE_SLA.getAppName();
    when(capacityManagementService.getApplicationSLA(targetName)).thenReturn(SAMPLE_SLA);
    testClient.get().uri(targetName).exchange()
            .expectStatus().isOk()
            .expectBody(ApplicationSlaRepresentation.class).value(result -> assertThat(result.getAppName()).isEqualTo(targetName));
    verify(capacityManagementService, times(1)).getApplicationSLA(targetName);
}