prefer assertEquals to assertTrue
don't rely on the Integer cache for equality
remove dead code