Moulded encapsulation of mounted components