A hearing device includes at least one electrical component arranged in a cavity, where the cavity is filled at least partly with a filling material. The hearing device further comprises a cavity enclosure structure enclosing the cavity, which cavity enclosure structure comprises an injection hole and an opening, where the filling material extends from the injection hole towards the opening through the cavity so that the filling material is detectable through the opening.