@Test
public void testEnsureAvailable() throws Exception {

    try{
        b.putLong(beyondInc,111L);
        if(b.isSliced())
            fail("Should throw exception");
    }catch(Exception e){
        //ignore
    }
    b.ensureAvailable(beyondInc+8);
    b.putLong(beyondInc,111L);
    assertEquals(111L, b.getLong(beyondInc));
}