@Test
public void convertToDocumentWrapper() {

    
    // given
    
    BytesWritable bytesWritable = new BytesWritable(docWrapper.toByteArray());
    
    // execute
    
    DocumentWrapper retDocWrapper = bytesWritableConverter.convertToDocumentWrapper(bytesWritable);
    
    // assert
    
    assertFalse(docWrapper == retDocWrapper);
    assertEquals(docWrapper.getDocumentMetadata().getKey(), retDocWrapper.getDocumentMetadata().getKey());
    
}