### Question:
SnmpEventInfo { public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Info: "); sb.append("\n\tfirst: "); sb.append(getFirstIPAddress()); sb.append("\n\tlast: "); sb.append(getLastIPAddress()); sb.append("\n\tversion: "); sb.append(getVersion()); sb.append("\n\tcommunity string: "); sb.append(getCommunityString()); sb.append("\n\tport: "); sb.append(String.valueOf(getPort())); sb.append("\n\tretry count: "); sb.append(String.valueOf(getRetryCount())); sb.append("\n\ttimeout: "); sb.append(getTimeout()); return sb.toString(); } SnmpEventInfo();  SnmpEventInfo(Event event); String getCommunityString(); void setCommunityString(String communityString); String getFirstIPAddress(); void setFirstIPAddress(String firstIPAddress); void setFirstIPAddress(InetAddress firstIPAddress); String getLastIPAddress(); void setLastIPAddress(String lastIPAddress); void setLastIPAddress(InetAddress lastIPAddress); Range getRange(); int getRetryCount(); void setRetryCount(int retryCount); int getTimeout(); void setTimeout(int timeout); String getVersion(); void setVersion(String version); int getPort(); void setPort(int port); Definition createDef(); boolean isSpecific(); String toString();  }### Answer:
@Test public void testAddressIncr() { IPAddress ipA = new IPAddress("::5"); assertEquals("::6", ipA.incr().toString()); IPAddress ipB = new IPAddress("::ffff:ffff"); assertEquals("::1:0:0", ipB.incr().toString()); IPAddress ipC = new IPAddress("::ff00:ffff"); assertEquals("::ff01:0", ipC.incr().toString()); IPAddress ipD = new IPAddress("::ff00:7fff"); assertEquals("::ff00:8000", ipD.incr().toString()); }
@Test public void testConfigAddressDecr() { IPAddress a = new IPAddress("::6"); assertEquals("::5", a.decr().toString()); IPAddress b = new IPAddress("::1:0:0"); assertEquals("::ffff:ffff", b.decr().toString()); IPAddress c = new IPAddress("ff::ffff:1:0"); assertEquals("ff::ffff:0:ffff", c.decr().toString()); IPAddress d = new IPAddress("ff::ffff:1:8000"); assertEquals("ff::ffff:1:7fff", d.decr().toString()); }