Testing Cosmological Models by Gravitational Lensing: I. Method and First Applications — arXiv2