adding Java Test for R Wrapper