The employer has to prove that they have tried and failed to hire a US worker qualified and willing to do the job for the prevailing wage. The complication is that some people think the existence of the H1B affects the prevailing wage, and the system is therefore skewed.