}
@Test
public void findAllWays_keepOrder() {
// Setup
ESWay way1 = ESWay.Builder.create().id(1).addLocation(1.1, 2.1).addLocation(1.2, 2.2)
.addLocation(1.3, 2.3).addLocation(1.4, 2.4).build();
ESWay way2 = ESWay.Builder.create().id(2).addLocation(1.1, 2.1).addLocation(1.2, 2.2)
.addLocation(1.3, 2.3).addLocation(1.4, 2.4).build();
List<ESWay> expected = Arrays.asList(new ESWay[] { way2, way1 });
index(INDEX_NAME, way1, way2);
refresh(INDEX_NAME);