// Example 1: Assert that two strings are not equal String expected = "Hello"; String actual = "World"; assertNotEquals(expected, actual); // Example 2: Assert that two integers are not equal int expected = 42; int actual = 24; assertNotEquals(expected, actual);The `assertNotEquals` method is part of the TestNG library, which is a testing framework for Java. It can be found in the `org.testng.Assert` package.