stub mock by assignment after when