// Example 1: Assert that two strings are equal String expected = "Hello, world!"; String actual = "Hello, world!"; assertEquals(expected, actual); // Example 2: Assert that two integers are equal int expected = 42; int actual = 42; assertEquals(expected, actual); // Example 3: Assert that two floating point numbers are equal, with a delta of 0.01 double expected = 3.14; double actual = 3.15; assertEquals(expected, actual, 0.01);In each of these examples, we are using the assertEquals method to check that two values are equal. The package library for the org.junit.Assert package is junit.framework.Assert.