How does the insertional inactivation of β-galactosidase allow the presence

How does the insertional inactivation of β-galactosidase allow the presence of foreign DNA in a plasmid vector such as pUC19 to be detected?