Replace mock by real code.