@Test public void testSerialize() throws Exception { byte[] bytes = "bytes".getBytes(Charset.defaultCharset()); serializer.serialize(bytes, generator, provider); verify(generator).writeUTF8String(bytes, 0, bytes.length); }
@Override public void serialize(byte[] bytes, JsonGenerator jsonGenerator, SerializerProvider provider) throws IOException { jsonGenerator.writeUTF8String(bytes, 0, bytes.length); }
SensitiveByteArraySerializer extends JsonSerializer<byte[]> { @Override public void serialize(byte[] bytes, JsonGenerator jsonGenerator, SerializerProvider provider) throws IOException { jsonGenerator.writeUTF8String(bytes, 0, bytes.length); } }
SensitiveByteArraySerializer extends JsonSerializer<byte[]> { @Override public void serialize(byte[] bytes, JsonGenerator jsonGenerator, SerializerProvider provider) throws IOException { jsonGenerator.writeUTF8String(bytes, 0, bytes.length); }  }
SensitiveByteArraySerializer extends JsonSerializer<byte[]> { @Override public void serialize(byte[] bytes, JsonGenerator jsonGenerator, SerializerProvider provider) throws IOException { jsonGenerator.writeUTF8String(bytes, 0, bytes.length); }  @Override void serialize(byte[] bytes, JsonGenerator jsonGenerator, SerializerProvider provider); }
SensitiveByteArraySerializer extends JsonSerializer<byte[]> { @Override public void serialize(byte[] bytes, JsonGenerator jsonGenerator, SerializerProvider provider) throws IOException { jsonGenerator.writeUTF8String(bytes, 0, bytes.length); }  @Override void serialize(byte[] bytes, JsonGenerator jsonGenerator, SerializerProvider provider);  }