println test works when stubbing some StreamEncoder methods