### Question:
NettyPoolKey { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("transactionRole:"); sb.append(transactionRole.name()); sb.append(","); sb.append("address:"); sb.append(address); sb.append(","); sb.append("msg:< "); sb.append(message.toString()); sb.append(" >"); return sb.toString(); } NettyPoolKey(TransactionRole transactionRole, String address);  NettyPoolKey(TransactionRole transactionRole, String address, AbstractMessage message); TransactionRole getTransactionRole(); NettyPoolKey setTransactionRole(TransactionRole transactionRole); String getAddress(); NettyPoolKey setAddress(String address); AbstractMessage getMessage(); void setMessage(AbstractMessage message); @Override String toString();  }### Answer:
@Test public void testToString() { String expectStr = "transactionRole:RMROLE,address:127.0.0.1:8091,msg:< " + MSG1.toString() + " >"; Assertions.assertEquals(nettyPoolKey.toString(), expectStr); }