### Question:
EnhancedMessageCodeKey extends MessageCodeKey { @Override public String toString() { return super.toString() + " msgType2: " + msgType2; } EnhancedMessageCodeKey(short version, int value, int value2, Class<?> clazz); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test public void testToString() { EnhancedMessageCodeKey key1 = new EnhancedMessageCodeKey(EncodeConstants.OF10_VERSION_ID, 4, 8, BarrierInput.class); Assert.assertEquals("Wrong toString()", "msgVersion: 1 objectClass: org.opendaylight.yang.gen.v1.urn.opendaylight" + ".openflow.protocol.rev130731.BarrierInput msgType: 4 msgType2: 8", key1.toString()); }