@Test
public void testMerge()  {

  Id itemId = new Id();
  Id versionId = new Id();
  mockExistingVersion(Space.PRIVATE, itemId, versionId);
  Id sourceVersionId = new Id();
  mockExistingVersion(Space.PRIVATE, itemId, sourceVersionId);
  CoreMergeResult retrievedMergeResult = new CoreMergeResult();
  CoreMergeChange change = createMergeChange(sourceVersionId, false);
  retrievedMergeResult.setChange(change);
  doReturn(new Response<>(retrievedMergeResult))
      .when(collaborationAdaptorMock)
      .mergeItemVersion(context, itemId, versionId, sourceVersionId);
  mockItemVersionChangeSave(Space.PRIVATE, itemId, sourceVersionId, false, change);
  CoreMergeResult result =
      itemVersionManagerImpl.merge(context, itemId, versionId, sourceVersionId);
  Assert.assertEquals(result, retrievedMergeResult);
}