@Test
    public void testPackBiasPacking() throws Exception {
        final Exchange ex = _persistit.getExchange("persistit", "SplitPolicyTest", true);
        final Random random = new Random(1);
        ex.setSplitPolicy(SplitPolicy.PACK_BIAS);
        ex.getValue().put("aaabbbcccdddeee");

        ex.removeAll();
        for (int i = 0; ex.getVolume().getStorage().getNextAvailablePage() < 20; i++) {
            ex.to(i).store();
        }
        final float ratioFowardSequential = inuseRatio(ex);
        assertTrue(ratioFowardSequential > .85);

        ex.removeAll();
        for (int i = 1000000; ex.getVolume().getStorage().getNextAvailablePage() < 21; i--) {
            ex.to(i).store();
        }
        final float ratioReverseSequential = inuseRatio(ex);
        assertTrue(ratioReverseSequential > .85);

        ex.removeAll();
        for (; ex.getVolume().getStorage().getNextAvailablePage() < 22;) {
            ex.to(random.nextInt()).store();
        }
        final float ratioRandom = inuseRatio(ex);
        assertTrue(ratioRandom > .5 && ratioRandom < .75);
    }