ThriftSpanEncoder implements BytesEncoder<Span> { @Override public byte[] encodeList(List<Span> input) { throw new UnsupportedOperationException("unused by internal code"); }  @Override Encoding encoding(); @Override int sizeInBytes(Span input); @Override byte[] encode(Span thriftSpan); @Override byte[] encodeList(List<Span> input);  }
@Test(expected = UnsupportedOperationException.class) public void encodeList_unsupported() { encoder.encodeList(Collections.emptyList()); }