test case to generate 10 pieces of java code