Test code to prototype an asynchronous JAX-RS application backed by elasticsearch