@Test
public void ofInt() {

    assertByte(AmsPort.of(1), "0x0100");
    assertByte(AmsPort.of(65535), "0xffff");
    assertThrows(IllegalArgumentException.class, () -> AmsPort.of(-1));
    assertThrows(IllegalArgumentException.class, () -> AmsPort.of(65536));
}