HystrixKioOperations implements KioOperations { @Override @HystrixCommand(ignoreExceptions = {NotFoundException.class, HttpClientErrorException.class, IllegalArgumentException.class}) public Application getApplicationById(final String applicationId) { return delegate.getApplicationById(applicationId); } HystrixKioOperations(final KioOperations delegate); @Override @HystrixCommand(ignoreExceptions = {HttpClientErrorException.class}) List<ApplicationBase> listApplications(); @Override @HystrixCommand(ignoreExceptions = {HttpClientErrorException.class, IllegalArgumentException.class}) List<ApplicationBase> listApplications(final Optional<ZonedDateTime> modifiedBefore, final Optional<ZonedDateTime> modifiedAfter); @Override @HystrixCommand(ignoreExceptions = {HttpClientErrorException.class, IllegalArgumentException.class}) List<ApplicationSearchResult> searchApplications(final String query, final Optional<ZonedDateTime> modifiedBefore, final Optional<ZonedDateTime> modifiedAfter); @Override @HystrixCommand(ignoreExceptions = {NotFoundException.class, HttpClientErrorException.class, IllegalArgumentException.class}) Application getApplicationById(final String applicationId); @Override @HystrixCommand(ignoreExceptions = {HttpClientErrorException.class, IllegalArgumentException.class}) void createOrUpdateApplication(final CreateOrUpdateApplicationRequest request, final String applicationId);  }
@Test public void testGetApplicationById() { when(mockDelegate.getApplicationById(anyString())).thenReturn(APPLICATION); assertThat(hystrixKioOperations.getApplicationById(APP_ID)).isSameAs(APPLICATION); verify(mockDelegate).getApplicationById(same(APP_ID)); }