}
@Test(expectedExceptions = { NonSuccessfulBucketCopy.class })
public void _givenCopyRequestNot200Status_throws() throws IOException {
copyBucketEndpoint = new CallCopyBucketEndpoint(httpClient, shuttlMBean,
new ResponseHandler());
LocalBucket bucket = TUtilsBucket.createBucket();
when(
httpClient.execute(any(HttpUriRequest.class)).getStatusLine()
.getStatusCode()).thenReturn(500);