@Test
    public void testEvenBias() {
        Buffer nullBuffer = null;
        int mockRightSize = 20;
        int mockLeftSize = 20;
        int capacity = 0;
        SplitPolicy evenBias = SplitPolicy.EVEN_BIAS;
        assertEquals("EVEN", evenBias.toString());
        int measure = evenBias.splitFit(nullBuffer, 0, 0, false, mockLeftSize, mockRightSize, 0, 0, capacity, 0,
                Sequence.NONE);
        /*
         * splitFit should return 0 since rightSize & leftSize are larger than
         * capacity
         */
        assertEquals(0, measure);

        capacity = 21;
        measure = evenBias.splitFit(nullBuffer, 0, 0, false, mockLeftSize, mockRightSize, 0, 0, capacity, 0,
                Sequence.NONE);
        /*
         * splitFit returns (capacity - abs(rightSize - leftSize)) for EVEN_BIAS
         * policy
         */
        assertEquals(capacity, measure);

        capacity = 21;
        mockLeftSize = 5;
        mockRightSize = 15;
        measure = evenBias.splitFit(nullBuffer, 0, 0, false, mockLeftSize, mockRightSize, 0, 0, capacity, 0,
                Sequence.NONE);
        /*
         * splitFit returns (capacity - abs(rightSize - leftSize)) for EVEN_BIAS
         * policy
         */
        assertEquals(11, measure);
    }