Test to know how to use different GC algorithms in java