### Question:
OMBucketDeleteResponse extends OMClientResponse { @Override public void addToDBBatch(OMMetadataManager omMetadataManager, BatchOperation batchOperation) throws IOException { String dbBucketKey = omMetadataManager.getBucketKey(volumeName, bucketName); omMetadataManager.getBucketTable().deleteWithBatch(batchOperation, dbBucketKey); } OMBucketDeleteResponse(@Nonnull OMResponse omResponse,
      String volumeName, String bucketName);  OMBucketDeleteResponse(@Nonnull OMResponse omResponse); @Override void addToDBBatch(OMMetadataManager omMetadataManager,
      BatchOperation batchOperation); String getVolumeName(); String getBucketName();  }### Answer:
@Test public void testAddToDBBatch() throws Exception { String volumeName = UUID.randomUUID().toString(); String bucketName = UUID.randomUUID().toString(); OmBucketInfo omBucketInfo = TestOMResponseUtils.createBucket( volumeName, bucketName); OMBucketCreateResponse omBucketCreateResponse = new OMBucketCreateResponse(OMResponse.newBuilder() .setCmdType(OzoneManagerProtocolProtos.Type.CreateBucket) .setStatus(OzoneManagerProtocolProtos.Status.OK) .setCreateBucketResponse( CreateBucketResponse.newBuilder().build()).build(), omBucketInfo); OMBucketDeleteResponse omBucketDeleteResponse = new OMBucketDeleteResponse(OMResponse.newBuilder() .setCmdType(OzoneManagerProtocolProtos.Type.DeleteBucket) .setStatus(OzoneManagerProtocolProtos.Status.OK) .setDeleteBucketResponse( DeleteBucketResponse.getDefaultInstance()).build(), volumeName, bucketName); omBucketCreateResponse.addToDBBatch(omMetadataManager, batchOperation); omBucketDeleteResponse.addToDBBatch(omMetadataManager, batchOperation); omMetadataManager.getStore().commitBatchOperation(batchOperation); Assert.assertNull(omMetadataManager.getBucketTable().get( omMetadataManager.getBucketKey(volumeName, bucketName))); }