Mocking without interfaces