Added Test 16 for Java