Test java pass by value concept