MockStream stores objects as json not concrete classes