@Test
public void testDDOverride() throws Exception {
final Context ctx = new InitialContext();
final PartialDDBean partialDDBean = (PartialDDBean) ctx.lookup("java:module/" + PartialDDBean.class.getSimpleName() + "!" + PartialDDBean.class.getName());
try {
partialDDBean.denyAllMethod();
Assert.fail("Call to denyAllMethod() was expected to fail");
} catch (EJBAccessException ejbae) {
// expected
}
// expected to pass