### Question:
TraceFlags { public static boolean isSampledFromHex(CharSequence src, int srcOffset) { byte b = BigendianEncoding.byteFromBase16String(src, srcOffset); return (b & IS_SAMPLED) != 0; } 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 toBooleanFromBase16() { assertThat(TraceFlags.isSampledFromHex("ff", 0)).isTrue(); assertThat(TraceFlags.isSampledFromHex("01", 0)).isTrue(); assertThat(TraceFlags.isSampledFromHex("05", 0)).isTrue(); assertThat(TraceFlags.isSampledFromHex("00", 0)).isFalse(); }