protected void checkCompliance(String className) throws Exception
{
ClassLoader jmxriLoader = createOptionalRemoteJMXRIWithTestsClassLoader();
ClassLoader mx4jLoader = createRemoteMX4JWithTestsClassLoader();
SerializationVerifier verifier = new SerializationVerifier("test.javax.management.remote.compliance.serialization.support.OptionalRemoteInstantiator", "test.javax.management.remote.compliance.serialization.support.OptionalRemoteComparator");
verifier.verifySerialization(className, jmxriLoader, mx4jLoader);
}