Hydrostatic tests are conducted under the constraints of either the industrys or the customers specifications, or may be required by law. The vessel is filled with a nearly incompressible liquid – usually water or oil – pressurised to test pressure, and examined for leaks or permanent changes in shape. Red or fluorescent dyes may be added to the water to make leaks easier to see. The test pressure is always considerably higher than the operating pressure to give a factor of safety. This factor of safety is typically 166.66%, 143% or 150% of the designed working pressure, depending on the regulations that apply. For example, if a cylinder was rated to DOT-2015 PSI (approximately 139 bar), it would be tested at around 3360 PSI (approximately 232 bar).
Water is commonly used because it is cheap and easily available, and is usually harmless to the system to be tested. Hydraulic fluids and oils may be specified where contamination with water could cause problems. These fluids are nearly incompressible, therefore requiring relatively little work to develop a high pressure, and is therefore also only able to release a small amount of energy in case of a failure - only a small volume will escape under high pressure if the container fails. If high pressure gas were used, then the gas would expand to V=(nRT)/p  with its compressed volume resulting in an explosion, with the attendant risk of damage or injury.
Small pressure vessels are normally tested using a water jacket test. The vessel is visually examined for defects and then placed in a container filled with water, and in which the change in volume of the vessel can be measured, usually by monitoring the water level in a calibrated tube. The vessel is then pressurised for a specified period, usually 30 or more seconds, and if specified, the expansion will be measured by reading off the amount of liquid that has been forced into the measuring tube by the volume increase of the pressurised vessel. The  vessel is then depressurised, and the permanent volume increase due to plastic deformation while under pressure () is measured by comparing the final volume in the measuring tube with the volume before pressurisation.
A leak will give a similar result to permanent set, but will be detectable by holding the volume in the pressurised vessel by closing the inlet valve for a period before depressurising, as the pressure will drop steadily during this period if there is a leak. In most cases a permanent set that exceeds the specified maximum will indicate failure. A leak may also be a failure criterion, but it may be that the leak is due to poor sealing of the test equipment. If the vessel fails, it will normally go through a condemning process marking the cylinder as unsafe.
The information needed to specify the test is stamped onto the cylinder. This includes the design standard, serial number, manufacturer, and  manufacture date. After testing, the vessel or its nameplate will usually be stamp marked with the date of the successful test, and the test facility's identification mark.
A simpler test, that is also considered a hydrostatic test but can be performed by anyone who has a garden hose, is to pressurise the vessel by filling it with water and to physically examine the outside for leaks. This type of test is suitable for containers such as boat fuel tanks, which are not pressure vessels but must work under the hydrostatic pressure of the contents. A hydrostatic test head is usually specified as a height above the tank top. The tank is pressurised by filling water to the specified height through a temporary standpipe if necessary. It may be necessary to seal vents and other outlets during the test.