@Test
public void convertToTuple2() {

    
    // given
    
    BytesWritable bytesWritable = new BytesWritable(docWrapper.toByteArray());
    
    // execute
    
    Tuple2<String, DocumentWrapper> retDocWrapperTuple2 = bytesWritableConverter.convertToDocumentWrapperTuple2(bytesWritable);
    
    // assert
    
    DocumentWrapper retDocWrapper = retDocWrapperTuple2._2();
    assertFalse(docWrapper == retDocWrapper);
    assertEquals(retDocWrapper.getDocumentMetadata().getKey(), docWrapper.getDocumentMetadata().getKey());
    assertEquals(retDocWrapperTuple2._1(), docWrapper.getDocumentMetadata().getKey());
}