There is a saying that the New Testament is hidden in the Old Testament, and that the Old Testament is revealed in the New Testament.
As we read the Bible we see that some of the people in the Old Testament have the same name as someone in the New Testament. A few times, there are parallels between the two people. A great example of this is Joshua and Jesus. Joshua is the Hebrew name for Jesus. Jesus is the Greek name for Joshua.
Just as Joshua lead the people of Israel through the waters of the Jordan and into the Promised Land; We see Jesus going out into the wilderness passing through the waters of the Jordan (in his Baptism) and entering ultimately into the New Promised land of Heaven.
Joseph in the Old Testament share the same name as Joseph in the New Testament and they as well have many similar experiences. Both bring their families into Egypt for safety. Both are given divine revelation through dreams. Both are chaste, and both are righteous. Finally, they both had fathers named Jacob.