### Question:
OMVolumeAddAclRequest extends OMVolumeAclRequest { private OzoneAcl getAcl() { return ozoneAcls.get(0); } OMVolumeAddAclRequest(OMRequest omRequest); @Override List<OzoneAcl> getAcls(); @Override String getVolumeName();  }### Answer:
@Test public void testValidateAndUpdateCacheSuccess() throws Exception { String volumeName = UUID.randomUUID().toString(); String ownerName = "user1"; TestOMRequestUtils.addUserToDB(volumeName, ownerName, omMetadataManager); TestOMRequestUtils.addVolumeToDB(volumeName, ownerName, omMetadataManager); OzoneAcl acl = OzoneAcl.parseAcl("user:bilbo:rwdlncxy[ACCESS]"); OMRequest originalRequest = TestOMRequestUtils.createVolumeAddAclRequest(volumeName, acl); OMVolumeAddAclRequest omVolumeAddAclRequest = new OMVolumeAddAclRequest(originalRequest); omVolumeAddAclRequest.preExecute(ozoneManager); String volumeKey = omMetadataManager.getVolumeKey(volumeName); OmVolumeArgs omVolumeArgs = omMetadataManager.getVolumeTable().get(volumeKey); Assert.assertNotNull(omVolumeArgs); OmOzoneAclMap aclMapBeforeSet = omVolumeArgs.getAclMap(); OMClientResponse omClientResponse = omVolumeAddAclRequest.validateAndUpdateCache(ozoneManager, 1, ozoneManagerDoubleBufferHelper); OMResponse omResponse = omClientResponse.getOMResponse(); Assert.assertNotNull(omResponse.getAddAclResponse()); Assert.assertEquals(OzoneManagerProtocolProtos.Status.OK, omResponse.getStatus()); OmOzoneAclMap aclMapAfterSet = omMetadataManager .getVolumeTable().get(volumeKey).getAclMap(); Assert.assertEquals(1, aclMapAfterSet.getAcl().size()); Assert.assertEquals(acl, aclMapAfterSet.getAcl().get(0)); }