Way way = OsmDataBuilder.buildSampleWay(1, 1, 2, 3, 4);
Iterator<MultiGetItemResponse> iteratorMocked = mock(Iterator.class);
doReturn(iteratorMocked).when(entityDao).getNodeItems(any(List.class));
ESShape builder = new ESShapeBuilder(1).addLocation(1.0, 2.0).addLocation(2.0, 3.0)
.addLocation(3.0, 2.0).addLocation(1.0, 2.0).build();
doReturn(builder).when(entityDao).getShape(iteratorMocked, 4);
BulkRequestBuilder bulkRequestBuilderMocked = mock(BulkRequestBuilder.class);
when(clientMocked.prepareBulk()).thenReturn(bulkRequestBuilderMocked);