since this uses mock objects, what logic is this testing?