// /////////////////////////
@Test
public void testSendWriteMetadataRequest( )
{
CloudStoreAdapterBase store = getCloudStoreAdapter( );
store.createDirectory( store.getDirectory( "/foo/bar/" ) );
CloudStoreFile fileToUpload = store.getFile( "/foo/bar/some_file.txt" );
fileToUpload.setStreamToStore( new MockFileStream( 50 ) );
fileToUpload.setCustomMetaTag( "foo", "bar" );
fileToUpload.write( null );
CloudStoreFile uploaded = store.getFile( fileToUpload.getPath( )
.getAbsolutePath( ) );
uploaded.refreshMetadata( );
String tag = uploaded.getMetadata( ).getCustomTags( ).get( "foo" );
if ( tag == null ) // Rackspace capitalizes the first letter of keys for
// some reason...