### Question:
BufferConverter { public Buffer toBuffer(DataBuffer dataBuffer) { ByteBuf byteBuf = NettyDataBufferFactory.toByteBuf(dataBuffer); return Buffer.buffer(byteBuf); } BufferConverter();  BufferConverter(NettyDataBufferFactory dataBufferFactory); NettyDataBufferFactory getDataBufferFactory(); DataBuffer toDataBuffer(Buffer buffer); Buffer toBuffer(DataBuffer dataBuffer);  }### Answer:
@Test public void shouldConvertToBuffer() { DataBuffer dataBuffer = dataBufferFactory.wrap("test".getBytes()); Buffer expectedBuffer = Buffer.buffer("test"); Buffer actualBuffer = converter.toBuffer(dataBuffer); assertThat(actualBuffer).isEqualTo(expectedBuffer); }