### Question:
KieServerStandaloneControllerProducer { protected static void validateProtocol(final String controllerURL){ if(controllerURL.startsWith("ws:") == false){ throw new RuntimeException("Invalid protocol for connecting with remote standalone controller, only Web Socket connections are supported"); } }  @Produces @ApplicationScoped @StandaloneController KieServerControllerClient produceKieServerControllerClient(final @StandaloneController EventHandler handler);  }### Answer:
@Test public void testWebSocketProtocol() { validateProtocol("ws: }
@Test public void testUnsupportedProtocol() { try { validateProtocol("http: fail("Unsupported protocol should throw exception"); } catch (Exception ex) { assertEquals("Invalid protocol for connecting with remote standalone controller, only Web Socket connections are supported", ex.getMessage()); } }