Virtusa Interview Question

Java Coding question - How to tell if two given strings are identical or not & write a junit for that code.