    @Test
    public void testFindsForwardLookingPartialRecords() throws Exception {

        final byte[] chunk = new byte[8 * 1024];
        final byte[] recordBytes = recordToBytes();
        final ByteBuffer byteBuffer = wrap(chunk);

        for (int i = (chunk.length - recordBytes.length) + 1; i < chunk.length; i++) {
            createNoise(chunk);

            arraycopy(recordBytes, 0, chunk, i, chunk.length - i);
            byteBuffer.clear();

            NioJournalFileRecord.FindResult result = findNextRecord(expectedDelimiter, byteBuffer);

            assertEquals(FoundPartialRecord, result.getStatus());
            assertEquals("didn't find correct partial record position.", i, byteBuffer.position());
        }
    }