@Test
public void testGetVersionByName() throws Exception
{

    MetadataVersion metadataVersion = new MetadataVersion( "version1", VersionType.ATOMIC );
    metadataVersion.setHashCode( "12345" );
    metadataVersionStore.save( metadataVersion );
    assertEquals( metadataVersion, metadataVersionStore.getVersionByName( "version1" ) );
    assertNull( metadataVersionStore.getVersionByName( "non_existing" ) );
    metadataVersionStore.delete( metadataVersion );
}