HystrixKioOperations implements KioOperations { @Override @HystrixCommand(ignoreExceptions = {HttpClientErrorException.class, IllegalArgumentException.class}) public void createOrUpdateApplication(final CreateOrUpdateApplicationRequest request, final String applicationId) { delegate.createOrUpdateApplication(request, 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 testCreateOrUpdateApplication() { hystrixKioOperations.createOrUpdateApplication(CREATE_OR_UPDATE_APP, APP_ID); verify(mockDelegate).createOrUpdateApplication(same(CREATE_OR_UPDATE_APP), same(APP_ID)); }