if (!valid) throw new RuntimeException();
}
public void compareJMXServerErrorException(Object obj1, Object obj2)
{
JMXServerErrorException jse1 = (JMXServerErrorException)obj1;
JMXServerErrorException jse2 = (JMXServerErrorException)obj2;
boolean valid = true; // jse1.getCause().getClass().equals(jse2.getCause().getClass());
valid = valid && (jse1.getLocalizedMessage().equals(jse2.getLocalizedMessage()));
valid = valid && (jse1.getMessage().equals(jse2.getMessage()));
valid = valid && (jse1.toString().equals(jse2.toString()));
if (!valid) throw new RuntimeException();
}