FLUME-2488: TestElasticSearchRestClient fails on Oracle JDK 8

(Johny Rufus via Jarek Jarcec Cecho)