modify testSdkSleep function and the encoding of the java file