### Question:
PrestoThriftId { @VisibleForTesting static String summarize(byte[] value) { if (value.length * 2 <= MAX_DISPLAY_CHARACTERS) { return BaseEncoding.base16().encode(value); } return BaseEncoding.base16().encode(value, 0, PREFIX_SUFFIX_BYTES) + FILLER + BaseEncoding.base16().encode(value, value.length - PREFIX_SUFFIX_BYTES, PREFIX_SUFFIX_BYTES); } @JsonCreator @ThriftConstructor  PrestoThriftId(@JsonProperty("id") byte[] id); @JsonProperty @ThriftField(1) byte[] getId(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testSummarize() { assertEquals(summarize(bytes()), ""); assertEquals(summarize(bytes(1)), "01"); assertEquals(summarize(bytes(255, 254, 253, 252, 251, 250, 249)), "FFFEFDFCFBFAF9"); assertEquals(summarize(bytes(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 249, 250, 251, 252, 253, 254, 255)), "00010203040506070809F9FAFBFCFDFEFF"); assertEquals(summarize(bytes(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 247, 248, 249, 250, 251, 252, 253, 254, 255)), "0001020304050607..F8F9FAFBFCFDFEFF"); }