generate PortalImpl mock