How do you wire an electric water heater to a breaker box?

Electric water heaters are typically wired to the main breaker panel. Before connecting the hot water circuit, use a volt-ohm meter to confirm that the existing circuit can support the electric water heater by setting the meter to 30 amps and measuring the voltage. Can you put a electrical panel in a closet? Electrical panels…