AmsPort extends UnsignedShortLEByteValue { @Override public String toString() { return String.valueOf(getAsInt()); } private  AmsPort(byte... value); private  AmsPort(int value); static AmsPort of(byte... values); static AmsPort of(int port); static AmsPort of(String port); static AmsPort of(ByteBuf byteBuf); @Override String toString(); static final Pattern AMS_PORT_PATTERN; static final int NUM_BYTES; }
@Test public void testToString() { assertEquals(AmsPort.of("1").toString(), "1"); }