add test file and some java docs
add test file and some java docs