[test] remove some bug finded by FindBugs in OutputTest at getByteArrayOutputInstance.

--HG--
extra : amend_source : 875c56217c77bba39aff3277395db5d18a58c15a