@Test
public void serializeRequestWrapsSource() {

    // given
    ByteBuf buffer = mock(ByteBuf.class);
    IndexTemplateRequest request = createDefaultTestObjectBuilder()
            .withSource(buffer)
            .build();
    // when
    ItemSource<ByteBuf> itemSource = request.serialize();
    // then
    assertEquals(buffer, itemSource.getSource());
}