def METHOD_NAME(self):
    def _test(moniker, expected_share=None, expected_dir=None, expected_file=None):
        i = StorageResourceIdentifier(self.cli.cloud, moniker)
        if expected_share is not None:
            assert i.container is None
            assert i.blob is None
            assert i.snapshot is None
            assert i.share == expected_share
        else:
            assert i.share is None
        assert i.directory == expected_dir
        assert i.filename == expected_file
    _test('sample')
    _test('https://momba.blob.core.windows.net/snake')
    _test('http://momba.blob.core.windows.net/snake')
    _test('http://momba.else.core.windows.net/snake')
    _test('http://momba.file.core.windows.net/snake/d/f.txt', 'snake', 'd', 'f.txt')
    _test('http://momba.file.core.windows.net/snake/f.txt', 'snake', '', 'f.txt')
    _test('http://momba.file.core.windows.net/snake/d/e/f.txt', 'snake', 'd/e', 'f.txt')
    _test('http://momba.file.core.windows.net/snake/d/e/f.txt?s=t', 'snake', 'd/e', 'f.txt')