public void testListBucketMaxResults() throws InterruptedException, ExecutionException, TimeoutException {
String bucketName = getContainerName();
try {
addAlphabetUnderRoot(bucketName);
ListBucketResponse bucket = getApi().listBucket(bucketName, maxResults(5));
assertEquals(bucket.getMaxKeys(), 5);
assert bucket.isTruncated();
assertEquals(bucket.size(), 5);
} finally {
returnContainer(bucketName);
}
}