Nothing sucks quite like testing file-manipulation code in Java.
@a8871cd2 very true.. I've found such things easier to test when I was using Okio (though, you said Java, and that's Kotlin)