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.
Methods in Java are restricted to 64k in the byte code. Static initializations are done in a single method (see link)
You may try to load the array data from a file.