Thoughtworks Interview Question

How would you test a DB connection from your application.