assert hdrs.getHeader(UDP_ID) == h3;
}
public static void testResize() {
Headers hdrs=createHeaders(3);
int capacity=hdrs.capacity();
System.out.println("hdrs = " + hdrs + ", capacity=" + capacity);
hdrs.putHeader((short)400, new MyHeader());
System.out.println("hdrs = " + hdrs + ", capacity=" + hdrs.capacity());
assert hdrs.capacity() > capacity;
capacity=hdrs.capacity();
for(int i=10; i <= 13; i++)
hdrs.putHeader((short)i, new MyHeader());
System.out.println("hdrs = " + hdrs + ", capacity=" + hdrs.capacity());
assert hdrs.capacity() > capacity;
}