The Cup of Divination?
It is entirely possible that Joseph, while he was living in Egypt and elevated to a place of nobility, adopted the practice of divination. This may be attributed to the influence of his wife, Asenath, whose father was an Egyptian priest.