Assert.assertEquals(null, mbe.getMessage());
Assert.assertEquals(null, mbe.getTargetException().getMessage());
targetEx = new Exception("actual message");
mbe = new MBeanException(targetEx);
mbe.initCause(targetEx);
Assert.assertEquals(targetEx, mbe.getCause());
Assert.assertEquals(null, mbe.getMessage());
mbe = toMBeanException(null, null);
Assert.assertEquals(null, mbe.getMessage());