fixed the java test file

As the getSdkVersion function returns now an Integer the corresponding
functions had to be changed as well