### Question:
ResizableSemaphore extends Semaphore { public void increasePermits(int increase) { this.release(increase); } ResizableSemaphore(int permits, boolean fair);  ResizableSemaphore(int permits); void increasePermits(int increase);  }### Answer:
@Test public void testIncreasePermits() throws Exception { semaphore = new ResizableSemaphore(10); semaphore.increasePermits(4); int availablePermits = semaphore.availablePermits(); assertEquals(availablePermits, 14, "Expected an increase to 14 permits available."); }