validate resources / providers match class vs reference