ExecutionException {
// instance a json mapper
ObjectMapper mapper = new ObjectMapper(); // create once, reuse
Beer beer = new Beer("Heineken", Colour.PALE, 0.33, 3);
IndexResponse ir = null;
// generate a json content
String jsonString = null;
// TODO Serialize Beer to json
// indexing document
// TODO index the beer in meal index, beer type
Assert.assertNotNull(ir);
Assert.assertNotNull(ir.getId());
GetResponse gr = null;
// TODO get the beer we have just indexed
Assert.assertNotNull(gr);
Assert.assertNotNull(gr.getId());
// We check that id are equals
Assert.assertEquals(ir.getId(), gr.getId());
Beer indexedBeer = null;
// TODO Deserialize json indexed beer into a beer object
Assert.assertNotNull(indexedBeer);
Assert.assertEquals(beer, indexedBeer);