int number = 5; assertTrue(number > 0);
String name = "Alice"; assertTrue(!name.isEmpty());
ListThe org.junit.Assert class is part of the JUnit 4 library, which is commonly used for unit testing in Java development.numbers = Arrays.asList(1, 2, 3, 4, 5); assertTrue(numbers.contains(3));