Mock-based test for the interface