PtrBuffer extends BufferBase { public void add(int val) { add(numSlot, val) ; } private  PtrBuffer(int maxRec);  PtrBuffer(ByteBuffer bb, int num); int get(int idx); int getHigh(); int getLow(); void add(int val); void add(int idx, int val); void set(int idx, int val); @Override String toString(); PtrBuffer duplicate();  }
@Test(expected=BufferException.class) public void ptrbuffer11() { PtrBuffer pb = make(5,5) ; contains(pb, 2, 4, 6, 8, 10) ; pb.add(12) ; }