Use stub factory singleton.