This test is suspect.
What does the getSource() method return? Check if it is a String. Do you mean to use a variable there?

You should use the equals() method when comparing the contents of...