@Test
public void testSSE() throws IOException, InterruptedException, DeploymentException, ExecutionException {
final Client client = ClientBuilder.newBuilder().register(SseFeature.class).build();
Response resp = client.target("http://localhost:8080/ssechannel").request().get();
NewCookie session = resp.getCookies().get(JSESSIONID);
final EventInput eventInput = resp.readEntity(EventInput.class);
final SettableFuture<String> res = new SettableFuture<>();
new Thread(new Runnable() {
@Override
public void run() {