@Override
  public void deleteVersion( RepositoryElementInterface element, String versionId ) throws KettleException {
    String fileId = element.getObjectId().getId();
    deleteVersion( fileId, versionId );
  }
@Test
  public void deleteVersionTest() throws KettleException {
    IUnifiedRepository mockRepo = mock( IUnifiedRepository.class );
    final HashMap<String, List<VersionSummary>> versionListMap = processVersionMap( mockRepo );

    UnifiedRepositoryPurgeService purgeService = new UnifiedRepositoryPurgeService( mockRepo );
    String fileId = "1";
    String versionId = "103";
    purgeService.deleteVersion( element1, versionId );

    verify( mockRepo, times( 1 ) ).deleteFileAtVersion( fileId, versionId );
    verify( mockRepo, never() ).deleteFileAtVersion( eq( "2" ), anyString() );
  }