### Question:
OMVolumeCreateRequest extends OMVolumeRequest { @Override public OMRequest preExecute(OzoneManager ozoneManager) throws IOException { VolumeInfo volumeInfo = getOmRequest().getCreateVolumeRequest().getVolumeInfo(); OmUtils.validateVolumeName(volumeInfo.getVolume()); long initialTime = Time.now(); VolumeInfo updatedVolumeInfo = volumeInfo.toBuilder() .setCreationTime(initialTime) .setModificationTime(initialTime) .build(); return getOmRequest().toBuilder().setCreateVolumeRequest( CreateVolumeRequest.newBuilder().setVolumeInfo(updatedVolumeInfo)) .setUserInfo(getUserInfo()) .build(); } OMVolumeCreateRequest(OMRequest omRequest); @Override OMRequest preExecute(OzoneManager ozoneManager); @Override OMClientResponse validateAndUpdateCache(OzoneManager ozoneManager,
      long transactionLogIndex,
      OzoneManagerDoubleBufferHelper ozoneManagerDoubleBufferHelper);  }### Answer:
@Test public void testPreExecute() throws Exception { String volumeName = UUID.randomUUID().toString(); String adminName = UUID.randomUUID().toString(); String ownerName = UUID.randomUUID().toString(); doPreExecute(volumeName, adminName, ownerName); LambdaTestUtils.intercept(OMException.class, "Invalid volume name: v1", () -> doPreExecute("v1", adminName, ownerName)); }