DeleteServiceInstanceBindingRequest extends AsyncServiceBrokerRequest { public static DeleteServiceInstanceBindingRequestBuilder builder() { return new DeleteServiceInstanceBindingRequestBuilder(); } DeleteServiceInstanceBindingRequest(String serviceInstanceId, String serviceDefinitionId, String planId,
			String bindingId, ServiceDefinition serviceDefinition, Plan plan, boolean acceptsAsync,
			String platformInstanceId, String apiInfoLocation, Context originatingIdentity, String requestIdentity); @JsonProperty(ASYNC_REQUEST_PARAMETER) //in base class field is excluded, as other requests are passing this as query params @Override boolean isAsyncAccepted(); String getServiceInstanceId(); String getBindingId(); String getServiceDefinitionId(); String getPlanId(); ServiceDefinition getServiceDefinition(); Plan getPlan(); static DeleteServiceInstanceBindingRequestBuilder builder(); @Override final boolean equals(Object o); @Override final boolean canEqual(Object other); @Override final int hashCode(); @Override String toString();  }
@Test void serializesAccordingToOsbSpecs() { Context originatingIdentity = PlatformContext.builder() .platform("test-platform") .build(); DeleteServiceInstanceBindingRequest request = DeleteServiceInstanceBindingRequest.builder() .serviceInstanceId("service-instance-id") .serviceDefinitionId("service-definition-id") .planId("plan-id") .bindingId("binding-id") .asyncAccepted(true) .platformInstanceId("platform-instance-id") .apiInfoLocation("https: .originatingIdentity(originatingIdentity) .requestIdentity("request-id") .plan(Plan.builder().build()) .serviceDefinition(ServiceDefinition.builder().build()) .build(); DocumentContext json = JsonUtils.toJsonPath(request); JsonPathAssert.assertThat(json).hasPath("$.plan_id").isEqualTo("plan-id"); JsonPathAssert.assertThat(json).hasPath("$.service_id").isEqualTo("service-definition-id"); JsonPathAssert.assertThat(json).hasPath("$.accepts_incomplete").isEqualTo(true); JsonPathAssert.assertThat(json).hasMapAtPath("$").hasSize(3); }