public void assertSame ( Description description , Object actual , Object expected ) { if ( actual != expected ) { String format = "expected:<%s> and actual:<%s> should refer to the same instance" ; throw failures . failure ( description , new BasicErrorMessageFactory ( format , expected , actual ) ) ; } }
Asserts that two objects refer to the same instance .