### Question:
TraceFlags { public static byte byteFromHex(CharSequence src, int srcOffset) { return BigendianEncoding.byteFromBase16String(src, srcOffset); } private  TraceFlags(); static int getHexLength(); static byte getDefault(); static boolean isSampledFromHex(CharSequence src, int srcOffset); static byte byteFromHex(CharSequence src, int srcOffset); static byte getSampled();  }### Answer:
@Test void toByteFromBase16() { assertThat(TraceFlags.byteFromHex("ff", 0)).isEqualTo((byte) 0xff); assertThat(TraceFlags.byteFromHex("01", 0)).isEqualTo((byte) 0x1); assertThat(TraceFlags.byteFromHex("05", 0)).isEqualTo((byte) 0x5); assertThat(TraceFlags.byteFromHex("00", 0)).isEqualTo((byte) 0x0); }