I would not want to rely on the text messages. You could certainly take him to court, or threaten to do so. But that will definitely have an impact on your roommate and perhaps your relationship with her/him.
*** LEGAL DISCLAIMER I am licensed to practice law in the State of Michigan and have offices in Wayne and Ingham Counties. My practice is focused in the areas of estate planning and probate administration. I am ethically required to state that the above answer does not create an attorney/client relationship. These responses should be considered general legal education and are intended to provide general information about the question asked. Frequently, the question does not include important facts that, if known, could significantly change the answer. Information provided on this site should not be used as a substitute for competent legal advice from a licensed attorney that practices in your state. The law changes frequently and varies from state to state. If I refer to your state's laws, you should not rely on what I say; I just did a quick Internet search and found something that looked relevant that I hoped you would find helpful. You should verify and confirm any information provided with an attorney licensed in your state.
In this rough economic times $1162 in your pocket is better than in the person who took over your lease. Nonetheless, unless filing fees in TX are cheaper than in NJ, besides the aggravation, and loss of time you will experience going to court, you will pay a chunk of that $162 to file the claim in small claims court.
You might write the landlord and explain that since paid the deposit, and have not been reimbursed, when he vacates, you are entitled o the $162.
As my father used to say when I would complain: "Life is not always fair." Move on.
The foregoing is not intended to be legal advice upon which you may rely as I have not been retained for this purpose.