### Question:
OMVolumeSetOwnerResponse extends OMClientResponse { @Override public void checkAndUpdateDB(OMMetadataManager omMetadataManager, BatchOperation batchOperation) throws IOException { if (getOMResponse().getStatus() == OzoneManagerProtocolProtos.Status.OK && getOMResponse().getSuccess()) { addToDBBatch(omMetadataManager, batchOperation); } } OMVolumeSetOwnerResponse(@Nonnull OMResponse omResponse,
      @Nonnull String oldOwner, @Nonnull UserVolumeInfo oldOwnerVolumeList,
      @Nonnull UserVolumeInfo newOwnerVolumeList,
      @Nonnull OmVolumeArgs newOwnerVolumeArgs);  OMVolumeSetOwnerResponse(@Nonnull OMResponse omResponse); @Override void checkAndUpdateDB(OMMetadataManager omMetadataManager,
      BatchOperation batchOperation);  }### Answer:
@Test public void testAddToDBBatchNoOp() throws Exception { OMResponse omResponse = OMResponse.newBuilder() .setCmdType(OzoneManagerProtocolProtos.Type.SetVolumeProperty) .setStatus(OzoneManagerProtocolProtos.Status.VOLUME_NOT_FOUND) .setSuccess(false) .setCreateVolumeResponse(CreateVolumeResponse.getDefaultInstance()) .build(); OMVolumeSetOwnerResponse omVolumeSetOwnerResponse = new OMVolumeSetOwnerResponse(omResponse); try { omVolumeSetOwnerResponse.checkAndUpdateDB(omMetadataManager, batchOperation); Assert.assertTrue(omMetadataManager.countRowsInTable( omMetadataManager.getVolumeTable()) == 0); } catch (IOException ex) { fail("testAddToDBBatchFailure failed"); } }