@Test public void parseBytes_truncatedTraceOptions_toNull() {

  assertThat(TraceContextBinaryFormat.parseBytes(new byte[] {
    0,
    0, 127, -1, -1, -1, -1, -1, -1, -1, -128, 0, 0, 0, 0, 0, 0, 0,
    1, -1, -1, -1, -1, -1, -1, -1, -1,
    2 // has field ID, but missing sampled bit
  }, null)).isNull();
}