Experimental test of a new method for phase determination using gamma resonance spectroscopy