### Question:
OMVolumeSetQuotaResponse extends OMClientResponse { @Override protected void addToDBBatch(OMMetadataManager omMetadataManager, BatchOperation batchOperation) throws IOException { omMetadataManager.getVolumeTable().putWithBatch(batchOperation, omMetadataManager.getVolumeKey(omVolumeArgs.getVolume()), omVolumeArgs); } OMVolumeSetQuotaResponse(@Nonnull OMResponse omResponse,
      @Nonnull OmVolumeArgs omVolumeArgs);  OMVolumeSetQuotaResponse(@Nonnull OMResponse omResponse);   }### Answer:
@Test public void testAddToDBBatch() throws Exception { String volumeName = UUID.randomUUID().toString(); String userName = "user1"; OMResponse omResponse = OMResponse.newBuilder() .setCmdType(OzoneManagerProtocolProtos.Type.SetVolumeProperty) .setStatus(OzoneManagerProtocolProtos.Status.OK) .setSuccess(true) .setCreateVolumeResponse(CreateVolumeResponse.getDefaultInstance()) .build(); OmVolumeArgs omVolumeArgs = OmVolumeArgs.newBuilder() .setOwnerName(userName).setAdminName(userName) .setVolume(volumeName).setCreationTime(Time.now()).build(); OMVolumeSetQuotaResponse omVolumeSetQuotaResponse = new OMVolumeSetQuotaResponse(omResponse, omVolumeArgs); omVolumeSetQuotaResponse.addToDBBatch(omMetadataManager, batchOperation); omMetadataManager.getStore().commitBatchOperation(batchOperation); Assert.assertEquals(1, omMetadataManager.countRowsInTable(omMetadataManager.getVolumeTable())); Table.KeyValue<String, OmVolumeArgs> keyValue = omMetadataManager.getVolumeTable().iterator().next(); Assert.assertEquals(omMetadataManager.getVolumeKey(volumeName), keyValue.getKey()); Assert.assertEquals(omVolumeArgs, keyValue.getValue()); }