### Question:
AvailablePortFinder { public static Set<Integer> getAvailablePorts() { return getAvailablePorts( MIN_PORT_NUMBER, MAX_PORT_NUMBER ); } private  AvailablePortFinder(); static Set<Integer> getAvailablePorts(); static int getNextAvailable(); static int getNextAvailable( int fromPort ); static boolean available( int port ); static Set<Integer> getAvailablePorts( int fromPort, int toPort ); static final int MIN_PORT_NUMBER; static final int MAX_PORT_NUMBER; }### Answer:
@Test public void testGetAvailablePorts_0args() { Set<Integer> result = AvailablePortFinder.getAvailablePorts(); assertTrue( !result.isEmpty() ); }
@Test public void testGetAvailablePorts_int_int() { Set<Integer> result = AvailablePortFinder.getAvailablePorts( 1000, 2000 ); assertTrue( !result.isEmpty() ); }