import java.util.concurrent.ArrayBlockingQueue; import junit.framework.TestCase; /** * Tests the ArrayBlockingQueue implementation. */ public class ArrayBlockingQueueTest extends TestCase { public void testCapacity () { final int CAP = 2; ArrayBlockingQueue q = new ArrayBlockingQueue(CAP); //assertEquals("capacity should equal constructor argument", CAP, q.capacity()); } }