ServiceInstanceBindingServiceProxy implements ServiceInstanceBindingService { @Override public Mono<DeleteServiceInstanceBindingResponse> deleteServiceInstanceBinding(DeleteServiceInstanceBindingRequest request) { preUnbinding(request); final DeleteServiceInstanceBindingRequest req = mapper.map(request); client.deleteServiceInstanceBinding(req.getServiceInstanceId(), req.getBindingId(), req.getServiceDefinitionId(), req.getPlanId(), OsbConstants.X_Broker_API_Version_Value); postUnbinding(request); return Mono.just(DeleteServiceInstanceBindingResponse.builder().build()); } @Autowired  ServiceInstanceBindingServiceProxy(ServiceInstanceBindingServiceClient client, ServiceInstanceBindingFilterRunner filterRunner, ServiceInstanceBindingRequestMapper mapper); @Override Mono<CreateServiceInstanceBindingResponse> createServiceInstanceBinding(CreateServiceInstanceBindingRequest request); @Override Mono<DeleteServiceInstanceBindingResponse> deleteServiceInstanceBinding(DeleteServiceInstanceBindingRequest request);  }
@Test public void should_proxy_delete_service_instance_binding_request_to_filtered_broker() throws Exception { DeleteServiceInstanceBindingRequest request = DeleteServiceInstanceBindingRequest.builder() .serviceInstanceId("instance_id") .bindingId("binding_id") .serviceDefinitionId("service_definition_id") .planId("plan_id") .build(); serviceInstanceBindingServiceProxy.deleteServiceInstanceBinding(request); Mockito.verify(client).deleteServiceInstanceBinding("instance_id", "binding_id", "service_definition_id", "plan_id", OsbConstants.X_Broker_API_Version_Value); }