import static org.hamcrest.MatcherAssert.*; import org.hamcrest.Matchers;
boolean isSuccessful = false; assertFalse(isSuccessful);
public class MathUtils { public static boolean isNegative(int num) { return num < 0; } } //In a unit test @Test public void testIsNegative() { int testNumber = 5; assertFalse(MathUtils.isNegative(testNumber)); }The org.hamcrest.Matchers library belongs to the Hamcrest package, a framework for writing fluent assertions.