Fix mocking of AbstractBuild