@Test(expected = MetaStoreException.class)
public void resolveIOExceptionOnUpload() throws Exception {

  when(transferManager.upload(anyString(), anyString(), any(InputStream.class), any(ObjectMetadata.class)))
      .thenThrow(IOException.class);
  uriResolver.resolve(SCHEMA, ROAD, VERSION);
}