// Use delimiter to find items within dir1 only.
objects = service.listObjects(bucketName, "dir1/", "/");
assertEquals("Incorrect number of objects matching prefix and delimiter", 3, objects.length);
// List items up one directory with prefix and delimiter (will include only dir1Level1)
objects = service.listObjects(bucketName, "dir1/dir1Level1", "/");
assertEquals("Incorrect number of objects matching prefix", 1, objects.length);
// List items up one directory with prefix and delimiter (will include only contents of dir1Level1)
objects = service.listObjects(bucketName, "dir1/dir1Level1/", "/");
assertEquals("Incorrect number of objects matching prefix", 2, objects.length);