Gravitational close encounter to test relativity theories