How Can You Know You're Going to Heaven?

Many people consider themselves to be pretty good, or at least, good enough for heaven. Can you know for sure?  

1 John 5:13 I write these things to you who believe in the name of the Son of God so that you may know that you have eternal life.