@Test
public void create() throws URISyntaxException {

  S3LocationResolver resolver = new S3LocationResolver(s3, "bucket", "prefix");
  resolver.resolveLocation("tableName", true);
  ArgumentCaptor<ByteArrayInputStream> contentCaptor = ArgumentCaptor.forClass(ByteArrayInputStream.class);
  ArgumentCaptor<ObjectMetadata> metadataCaptor = ArgumentCaptor.forClass(ObjectMetadata.class);
  verify(s3).putObject(eq("bucket"), eq("prefix/tableName/"), contentCaptor.capture(), metadataCaptor.capture());
  assertThat(contentCaptor.getValue().available(), is(0));
  assertThat(metadataCaptor.getValue().getContentLength(), is(0L));
}