public RawLog newImage(final long correlationId, final int termBufferLength, final boolean useSparseFiles)
    {
        return newInstance(imagesDir, correlationId, termBufferLength, useSparseFiles);
    }
@Test
    void shouldCreateCorrectLengthAndZeroedFilesForImage()
    {
        final int imageTermBufferLength = TERM_BUFFER_LENGTH / 2;
        rawLog = fileStoreLogFactory.newImage(CREATION_ID, imageTermBufferLength, PRE_ZERO_LOG);

        assertEquals(imageTermBufferLength, rawLog.termLength());

        final UnsafeBuffer[] termBuffers = rawLog.termBuffers();
        assertEquals(PARTITION_COUNT, termBuffers.length);

        for (final UnsafeBuffer termBuffer : termBuffers)
        {
            assertEquals(imageTermBufferLength, termBuffer.capacity());
            assertEquals(0, termBuffer.getByte(0));
            assertEquals(0, termBuffer.getByte(imageTermBufferLength - 1));
        }

        final UnsafeBuffer metaData = rawLog.metaData();

        assertEquals(LogBufferDescriptor.LOG_META_DATA_LENGTH, metaData.capacity());
        assertEquals(0, metaData.getByte(0));
        assertEquals(0, metaData.getByte(LogBufferDescriptor.LOG_META_DATA_LENGTH - 1));
    }