added in assert for mock method being invoked