You can't, but this is asserting that only rmid is started and not rmiregistry. that's the way rmi works.
The test was using the default ports 1098 and 1098+1. This change just makes the base port number random to allow the suite to be run in parallel with any other test that uses the rmi components