Refactored the code of ConvertJavaObjToConstant and split the tests into
three ant tasks.