[JDK-8253744](https://bugs.openjdk.org/browse/JDK-8253744) modified this test to deal with the injected java.lang.IndentityObject class. That is no longer done and was rolled back, but changes in this file were missed. Thus this test now has extra logic to deal with two possible interfaces being returned when it is not necessary.
After this change this file is now identical to mainline. Tested by running test a few times on all supported platforms. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - rollback changes Changes: https://git.openjdk.org/valhalla/pull/2520/files Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2520&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8386087 Stats: 16 lines in 1 file changed: 1 ins; 8 del; 7 mod Patch: https://git.openjdk.org/valhalla/pull/2520.diff Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2520/head:pull/2520 PR: https://git.openjdk.org/valhalla/pull/2520
