6461635: [TESTBUG] BasicTests.sh test fails intermittentlySummary: Transform dummy class instead of BigInteger to avoid complication by -Xshare. Ported from script to java.Reviewed-by: alanbContributed-by: mattias.tobiasson@oracle.com