@Test
public void testResetRevision()  {

  Id itemId = new Id();
  Id versionId = new Id();
  mockExistingVersion(Space.PRIVATE, itemId, versionId);
  Id changeRef = new Id("changeRef");
  CoreMergeChange mergeChange = createMergeChange(versionId, false);
  doReturn(new Response<>(mergeChange))
      .when(collaborationAdaptorMock)
      .resetItemVersionRevision(context, itemId, versionId, changeRef);
  doReturn(new Response<>(Void.TYPE)).when(stateAdaptorMock).updateItemVersion(eq(context), eq
      (Space.PRIVATE), eq(itemId), eq(versionId), eq(mergeChange.getChangedVersion()
      .getItemVersion().getData()), any(Date.class));
  itemVersionManagerImpl.resetRevision(context, itemId, versionId, changeRef);
  verifySaveChangedElements(itemId, versionId, Space.PRIVATE, mergeChange.getChangedElements());
}