* @throws Exception If there is some problem inside
*/
@Test(expected = IOException.class)
public void throwsExceptionIfNoBucketWebsiteConfiguration()
throws Exception {
final AmazonS3 aws = Mockito.mock(AmazonS3.class);
final AmazonServiceException ex =
new AmazonServiceException("The object is not found");
ex.setStatusCode(HttpStatus.SC_NOT_FOUND);
Mockito.doThrow(ex).when(aws)
.getObject(Mockito.any(GetObjectRequest.class));