### Question:
OzoneObjInfo extends OzoneObj { @Override public String getBucketName() { return bucketName; } private  OzoneObjInfo(ResourceType resType, StoreType storeType,
      String volumeName, String bucketName, String name); @Override String getPath(); @Override String getVolumeName(); @Override String getBucketName(); @Override String getKeyName(); @Override String getPrefixName(); static OzoneObjInfo fromProtobuf(OzoneManagerProtocolProtos.OzoneObj
      proto);  }### Answer:
@Test public void testGetBucketName() { objInfo = getBuilder(volume, bucket, key).build(); assertEquals(objInfo.getBucketName(), bucket); objInfo =getBuilder(volume, null, null).build(); assertEquals(objInfo.getBucketName(), null); objInfo =getBuilder(null, bucket, null).build(); assertEquals(objInfo.getBucketName(), bucket); }