public void checkSimple(int length, int expectedLength) throws IOException {
ArrayBucket input = new ArrayBucket();
BucketTools.fill(input, length);
ArrayBucket copy = new ArrayBucket();
PaddedBucket padded = new PaddedBucket(copy);
BucketTools.copy(input, padded);
assertEquals(padded.size(), input.size());
assertEquals(copy.size(), expectedLength);
assertTrue(BucketTools.equalBuckets(input, padded));
InputStream aIn = input.getInputStream();
InputStream bIn = copy.getInputStream();
assertTrue(FileUtil.equalStreams(aIn, bIn, length));