RtpPortManager implements PortManager { @Override public int getLowest() { return this.minimum; } RtpPortManager(int minimum, int maximum);  RtpPortManager(); @Override int getLowest(); @Override int getHighest(); @Override int next(); int peek(); int current(); static final int MIN_PORT; static final int MAX_PORT; }
@Test public void testEvenLowestPort() { final int minimum = 2; final int maximum = 10; final PortManager portManager = new RtpPortManager(minimum, maximum); assertEquals(minimum, portManager.getLowest()); }
@Test public void testOddLowestPort() { final int minimum = 1; final int minimumEven = 2; final int maximum = 10; final PortManager portManager = new RtpPortManager(minimum, maximum); assertEquals(minimumEven, portManager.getLowest()); }