public void testCreateParentIfNeededAsyncNoPath() { AsyncBlobStore asyncBlobStore = createMock(AsyncBlobStore.class); String container = "container"; Blob blob = createMock(Blob.class); MutableBlobMetadata md = createMock(MutableBlobMetadata.class); expect(blob.getMetadata()).andReturn(md).atLeastOnce(); expect(md.getName()).andReturn("hello").atLeastOnce(); replay(asyncBlobStore); replay(blob); replay(md); createParentIfNeededAsync(asyncBlobStore, container, blob); verify(asyncBlobStore); verify(blob); verify(md); }