A numerical test of the generalized Birch and Swinnerton-Dyer conjecture