Changed public API, changed sink package, and added java unit test to ma...

...ke sure Java API is callable from Java.
To prevent this from appearing in spark public api docs