How the hell do you unit test this???