public static Page createFileStatisticsPage(long fileSize, long rowCount)
    {
        // FileStatistics page layout:
        //
        // fileSize   rowCount
        //  X             X
        PageBuilder statsPageBuilder = new PageBuilder(ImmutableList.of(BIGINT, BIGINT));
        statsPageBuilder.declarePosition();
        BIGINT.writeLong(statsPageBuilder.getBlockBuilder(FILE_SIZE_CHANNEL), fileSize);
        BIGINT.writeLong(statsPageBuilder.getBlockBuilder(ROW_COUNT_CHANNEL), rowCount);

        return statsPageBuilder.build();
    }
@Test
    public void testCreateFileStatisticsPage()
    {
        Page statisticsPage = createFileStatisticsPage(FILE_SIZE, ROW_COUNT);

        assertEquals(statisticsPage.getPositionCount(), 1);
        assertEquals(statisticsPage.getChannelCount(), 2);
    }