Are you sure, that `MockConfigurationBuilder` class instance can be given as any argument to `mock` method? Looking at `namedMock` method it seems, that builder must be given as 1st parameter.