@Test
void testBytes() throws Exception {

    // when
    new ByteArrayToHexSerializer().serialize(new byte[] {0b0, 0b1, 0b10, 0b01111111}, jsonGenerator, null);
    // then
    verify(jsonGenerator).writeString("\\x0001027f");
}