I have a unit test where I have statically defined a quite large byte array (over 8000 bytes) as the byte data of a file I don\'t want to read every time I run my unit test.
You can load the byte array from a file in you @BeforeClass static method. This will make sure it's loaded only once for all your unit tests.
@BeforeClass