public static void assertSame(String message, Object expected, Object actual) {

        String expectedInQuotes = inQuotesIfNotNull(expected);
        String actualInQuotes = inQuotesIfNotNull(actual);

        if (expected == actual) {
            pass(message);
        } else {
            fail(message, actualInQuotes + " is not the same (!=) as expected " + expectedInQuotes);
        }
    }
public static void assertSame ( String message , Object expected , Object actual ) { String expectedInQuotes = inQuotesIfNotNull ( expected ) ; String actualInQuotes = inQuotesIfNotNull ( actual ) ; if ( expected == actual ) { pass ( message ) ; } else { fail ( message , actualInQuotes + " is not the same (!=) as expected " + expectedInQuotes ) ; } }
Assert that an actual value is the same object as an expected value.
<p>
Sameness is tested with the == operator.
<p>
If the assertion passes, a green tick will be shown. If the assertion fails, a red cross will be shown.

@param message  message to display alongside the assertion outcome
@param expected the expected value
@param actual   the actual value