SpController extends SharedController { @PutMapping("/protocolBinding") public void setProtocolBinding(@RequestBody String protocolBinding) { LOG.info("Request to set protocolBinding to {}", protocolBinding); configuration().setProtocolBinding(protocolBinding); } @Autowired  SpController(final SpConfiguration configuration); @PutMapping(value = {"/ssoServiceURL"}) void setSsoServiceURL(@RequestBody String ssoServiceURL); @PutMapping("/protocolBinding") void setProtocolBinding(@RequestBody String protocolBinding); @PutMapping("/assertionConsumerServiceURL") void setAssertionConsumerServiceURL(@RequestBody String assertionConsumerServiceURL);  }
@Test public void setProtocolBinding() throws Exception { String protocolBinding = "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-REDIRECT"; api(protocolBinding, "/api/protocolBinding"); assertEquals(protocolBinding, spConfiguration.getProtocolBinding()); }