Yardi Systems interview question

How do you test a method that has DB operations included?