Yardi Systems Interview Question

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