@Test
public void testGet() throws Exception {

  Upload upload = EasyMock.createStrictMock(Upload.class);
  upload.waitForCompletion();
  EasyMock.expectLastCall().once();
  EasyMock.replay(upload);
  EasyMock.expect(s3Transfer.upload(BUCKET_NAME, KEY_VERSION_1 + ASSET_ID + ".xml", sampleFile)).andReturn(upload);
  S3ObjectInputStream s3Stream = EasyMock.createNiceMock(S3ObjectInputStream.class);
  EasyMock.expect(s3Object.getObjectContent()).andReturn(s3Stream);
  EasyMock.expect(s3Client.getObject(BUCKET_NAME, KEY_VERSION_1 + ASSET_ID + ".xml")).andReturn(s3Object);
  EasyMock.replay(s3Object, s3Stream, s3Client, s3Transfer);
  // Store asset
  StoragePath path = new StoragePath(ORG_ID, MP_ID, new VersionImpl(1L), ASSET_ID);
  store.put(path, Source.mk(uri));
  Opt<InputStream> streamOpt = store.get(path);
  Assert.assertTrue(streamOpt.isSome());
}