@Test
public void testHandleCurrentMetadataVersionShouldReturnCurrentVersionOfSystem() throws Exception
{

    MetadataRetryContext mockRetryContext = mock( MetadataRetryContext.class );
    MetadataVersion currentVersion = new MetadataVersion();
    currentVersion.setType( VersionType.BEST_EFFORT );
    currentVersion.setName( "test_version" );
    currentVersion.setCreated( new Date() );
    currentVersion.setHashCode( "samplehashcode" );
    when( metadataVersionService.getCurrentVersion() ).thenReturn( currentVersion );
    MetadataVersion actualVersion = metadataSyncPreProcessor.handleCurrentMetadataVersion( mockRetryContext );
    assertEquals( currentVersion, actualVersion );
}