assertEquals is the most commonly used testing method.
assertEquals( "string1", "string1" ); //would fail assertEquals( expectedValue, actualValue ); //would pass if expectedValue.equals( actualValue )
You can also add a comment that prints if the statement fails:
assertEquals( "method result should be 7", 7, thing.methodThatShouldReturn7() ); //would pass if 7 == thing.methodThatShouldReturn7()
See Assert class javadoc for more details, and as soon as you feel comfortable with assertEquals, you can see the other options available to you.
source share