Nice! Only change I'd suggest is to use a @Rule TemporaryFolder for creating the file, so it'll get cleaned up when the test finishes.