@Test
public void testUpdate() throws Exception
{

    MetadataVersion metadataVersion = new MetadataVersion( "version1", VersionType.ATOMIC );
    metadataVersion.setHashCode( "12345" );
    metadataVersionStore.save( metadataVersion );
    metadataVersion.setName( "newVersion" );
    metadataVersionStore.update( metadataVersion );
    assertNotNull( metadataVersionStore.getVersionByName( "newVersion" ) );
    metadataVersionStore.delete( metadataVersion );
}