### Question:
OMBucketCreateResponse extends OMClientResponse { @Override public void addToDBBatch(OMMetadataManager omMetadataManager, BatchOperation batchOperation) throws IOException { String dbBucketKey = omMetadataManager.getBucketKey(omBucketInfo.getVolumeName(), omBucketInfo.getBucketName()); omMetadataManager.getBucketTable().putWithBatch(batchOperation, dbBucketKey, omBucketInfo); } OMBucketCreateResponse(@Nonnull OMResponse omResponse,
      @Nonnull OmBucketInfo omBucketInfo);  OMBucketCreateResponse(@Nonnull OMResponse omResponse); @Override void addToDBBatch(OMMetadataManager omMetadataManager,
      BatchOperation batchOperation); @Nullable OmBucketInfo getOmBucketInfo();  }### Answer:
@Test public void testAddToDBBatch() throws Exception { String volumeName = UUID.randomUUID().toString(); String bucketName = UUID.randomUUID().toString(); OmBucketInfo omBucketInfo = TestOMResponseUtils.createBucket( volumeName, bucketName); Assert.assertEquals(0, omMetadataManager.countRowsInTable(omMetadataManager.getBucketTable())); OMBucketCreateResponse omBucketCreateResponse = new OMBucketCreateResponse(OMResponse.newBuilder() .setCmdType(OzoneManagerProtocolProtos.Type.CreateBucket) .setStatus(OzoneManagerProtocolProtos.Status.OK) .setCreateBucketResponse( CreateBucketResponse.newBuilder().build()).build(), omBucketInfo); omBucketCreateResponse.addToDBBatch(omMetadataManager, batchOperation); omMetadataManager.getStore().commitBatchOperation(batchOperation); Assert.assertEquals(1, omMetadataManager.countRowsInTable(omMetadataManager.getBucketTable())); Table.KeyValue<String, OmBucketInfo> keyValue = omMetadataManager.getBucketTable().iterator().next(); Assert.assertEquals(omMetadataManager.getBucketKey(volumeName, bucketName), keyValue.getKey()); Assert.assertEquals(omBucketInfo, keyValue.getValue()); }