UpdateServiceInstanceResponse extends AsyncServiceBrokerResponse { public static UpdateServiceInstanceResponseBuilder builder() { return new UpdateServiceInstanceResponseBuilder(); } UpdateServiceInstanceResponse();  UpdateServiceInstanceResponse(boolean async, String operation, String dashboardUrl); String getDashboardUrl(); static UpdateServiceInstanceResponseBuilder builder(); @Override final boolean equals(Object o); @Override boolean canEqual(Object other); @Override final int hashCode(); @Override String toString();  }
@Test void responseWithDefaultsIsBuilt() { UpdateServiceInstanceResponse response = UpdateServiceInstanceResponse.builder() .build(); assertThat(response.isAsync()).isEqualTo(false); assertThat(response.getOperation()).isNull(); DocumentContext json = JsonUtils.toJsonPath(response); assertThat(json).hasNoPath("$.operation"); }
@Test void responseWithAllValuesIsBuilt() { UpdateServiceInstanceResponse response = UpdateServiceInstanceResponse.builder() .async(true) .dashboardUrl("https: .operation("in progress") .build(); assertThat(response.isAsync()).isEqualTo(true); assertThat(response.getOperation()).isEqualTo("in progress"); DocumentContext json = JsonUtils.toJsonPath(response); assertThat(json).hasPath("$.operation").isEqualTo("in progress"); assertThat(json).hasPath("$.dashboard_url").isEqualTo("https: }