Did God Tempt Abraham?

If God does not tempt anyone (James 1:13), why does Genesis 22:1 indicate that God tempted Abraham? How can both of these verses be correct? Is this a legitimate contradiction, as critics contend, or is there a logical and biblically consistent answer for the differences in these verses?