Updated java bindings for API to 1_0. Added sample junit test.