@Test
public void testFileLengthMaxIntPlusOne() throws IOException {

    final File file = tempFolder.newFile("test.bin");
    try (RandomAccessFile raFile = new RandomAccessFile(file, "rw")) {
        final long expectedLength = 1L + Integer.MAX_VALUE;
        raFile.setLength(expectedLength);
        final FileEntityProducer fileEntityProducer = new FileEntityProducer(file);
        Assert.assertEquals(expectedLength, fileEntityProducer.getContentLength());
    }
}