Brazil goalkeeper Julio Cesar can empathise with his Spain counterpart Iker Casillas after both had to endure "difficult moments" in the last year.