[SPARK-1633][Streaming] Java API unit test and example for custom streaming receiver in Java