Can we use `ByteArrayOutputStream`/`ByteArrayInputStream` instead? I mean, we can write something similar to test `testSerialization` from `AbstractMatrixTest` w/o using external files.