@Test
public void shouldSuccessfullyCheckIfBucketExists() {

    doReturn(new ObjectListing()).when(mockClient).listObjects(any(ListObjectsRequest.class));
    S3ArtifactStore store = new S3ArtifactStore(mockClient, "foo-bar");
    assertThat(store.bucketExists(), is(true));
}