How to test General Relativity? If astronomers could measure the wavelength of light coming from the sun and compare it to the wavelength it should have without gravity, it should confirm general theory of relativity. Answer as to how will that happen. Assume I have no mathematical background and am just a layman. 
 A: This explanation requires, as Martin says above, a lot of exaggeration to show the effect.

Above: Spectrum measured at surface of Sun, that is without gravity.

Above: Spectrum of Sun measured from Earth, after the light has been affected by the gravity of the Sun
Please bear in mind that the movement of the black lines towards the right (red shifting) is greatly exaggerated, as the Sun's gravity is so weak, also that this is not the spectrum of the Sun, just a sample star.
The black lines represent elements which are present in distinctive patterns on stars such as the sun. 
Most importantly, we have no way of measuring the solar spectrum at the surface of the Sun, for obvious reasons we are looking at the light after the gravitional effect has occured.  
The movement of the lines indicates a slight increase in wavelength  as the photon moves a distance away from the sun. If the Sun were 10 times more massive, it's gravity would enhance the effect.
Another way of view the effect is the picture below, with blue (higher energy/shorter wavelengths) at the bottom and red at the top. The spring shape  is irrelevant to the idea. Again, this effect is greatly exaggerated for clarity.
 
Original image by User:Vlad2i, slightly modified.
Gravitional Redshift 

In astrophysics, gravitational redshift or Einstein shift is the process by which electromagnetic radiation originating from a source that is in a gravitational field is reduced in frequency, or redshifted, when observed in a region at a higher gravitational potential. This is a direct result of gravitational time dilation - if one is outside of an isolated gravitational source, the rate at which time passes increases as one moves away from that source. As frequency is inverse of time (specifically, time required for completing one wave oscillation), frequency of the electromagnetic radiation is reduced in an area of higher gravitational potential. There is a corresponding reduction in energy when electromagnetic radiation is red-shifted, as given by Planck's relation, due to the electromagnetic radiation propagating in opposition to the gravitational gradient. There also exists a corresponding blueshift when electromagnetic radiation propagates from an area of higher gravitational potential to an area of lower gravitational potential.

