HystrixKioOperations implements KioOperations { @Override @HystrixCommand(ignoreExceptions = {HttpClientErrorException.class}) public List<ApplicationBase> listApplications() { return delegate.listApplications(); } 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 testListApplications() { when(mockDelegate.listApplications()).thenReturn(APPS); assertThat(hystrixKioOperations.listApplications()).isSameAs(APPS); verify(mockDelegate).listApplications(); }