RecordBuffer extends BufferBase { public void add(Record record) { add(numSlot, record) ; } RecordBuffer(RecordFactory recFactory, int maxRec);  RecordBuffer(ByteBuffer bb, RecordFactory recFactory, int num); Record get(int idx); Record getLow(); Record getHigh(); void add(Record record); void add(int idx, Record record); void set(int idx, Record record); Record _get(int idx); int find(Record k); Iterator<Record> iterator(); Iterator<Record> iterator(Record min, Record max); Record findGet(Record k); boolean removeByKey(Record k); int find(Record rec, int fromIndex, int toIndex); @Override String toString(); RecordBuffer duplicate();  }
@Test(expected=BufferException.class) public void recBuffer11() { RecordBuffer rb = make(5,5) ; contains(rb, 2, 4, 6, 8, 10) ; rb.add(r(12)) ; }