DetachedMockFactory documentation mentions this -
In order to be usable those Mocks must be manually attached to the Specification using MockUtil#attachMock(