A serous cavity that surrounds the anterior, medial, and lateral surfaces of the testes. This is where a hydrocele collects.