SPARK-1695: java8-tests compiler error: package com.google.common.co...

...llections does not exist

Author: witgo <witgo@qq.com>

Closes #611 from witgo/SPARK-1695 and squashes the following commits:

d77a887 [witgo] Fix SPARK-1695: java8-tests compiler error: package com.google.common.collections does not exist
(cherry picked from commit f25ebed9f4552bc2c88a96aef06729d9fc2ee5b3)

Signed-off-by: Patrick Wendell <pwendell@gmail.com>