### Question:
CircularQueue { public T get() throws InterruptedException { return get( 0 ); } CircularQueue( int size );  CircularQueue(); int size(); int count(); boolean isEmpty(); boolean isFull(); T get(); synchronized T get( int maxDelay ); boolean put( T obj ); synchronized boolean put( T obj, int maxDelay ); synchronized void close(); boolean isClosed();  }### Answer:
@Test public void get() throws Exception { CircularQueue<Integer> queue = new CircularQueue<Integer>( 1 ); System.nanoTime(); assertNull( queue.get( 10 ) ); TestHelp.assertRelError( 1, 1, 1 ); for (int i: new int[] { 10, 20, 30, 50, 80, 130, 210, 340, 550, 890, 1440 } ) { long t0 = System.nanoTime(); assertNull( queue.get( i ) ); double t = (System.nanoTime() - t0) / 1000000.0; TestHelp.assertRelError( i, t, REL_ERROR ); } }