javaEnabled Method test sample