ActivationException e = new ActivationException("fixture", npe);
assertTrue(e.getMessage().contains("fixture"));
assertSame(npe, e.getCause());
assertSame(npe, e.detail);
try {
e.initCause(new NullPointerException());
fail("did not throw illegal state exception");
} catch (IllegalStateException ise) {
}
}