### Question:
EJBOperations { public void removeActivationConfigProperty(JavaClassSource target, String name) { AnnotationSource<JavaClassSource> ann = target.getAnnotation(MessageDriven.class); if (ann == null) { return; } AnnotationSource<JavaClassSource> existing[] = ann.getAnnotationArrayValue("activationConfig"); if (existing != null) { StringBuilder entries = new StringBuilder(); for (AnnotationSource<JavaClassSource> entry : existing) { if (name.equals(entry.getStringValue("propertyName"))) { continue; } if (entries.length() > 0) { entries.append(',').append(System.lineSeparator()); } entries.append(entry); } ann.setLiteralValue("activationConfig", "{" + entries + "}"); } }  JavaResource newEJB(
            final Project project,
            final String ejbName,
            final String targetPackage,
            final EJBType ejbType,
            final boolean serializable); JavaResource newEJB(DirectoryResource target,
            final String ejbName,
            final String ejbPackage,
            final EJBType ejbType,
            final boolean serializable); JavaClassSource setupMessageDrivenBean(JavaClassSource ejb, JMSDestinationType destType, String destName); boolean isEJB(JavaType<?> javaType); void addActivationConfigProperty(JavaClassSource ejb, String name, String value); void removeActivationConfigProperty(JavaClassSource target, String name);  }### Answer:
@Test public void testRemoveActivationConfigProperty() { JavaClassSource mdb = Roaster.create(JavaClassSource.class).setName("FooMDB"); ejbOp.setupMessageDrivenBean(mdb, JMSDestinationType.QUEUE, "queue/foo"); ejbOp.removeActivationConfigProperty(mdb, "destinationType"); Assert.assertThat(mdb.hasAnnotation(MessageDriven.class), is(true)); Assert.assertThat(mdb.getInterfaces(), hasItem("javax.jms.MessageListener")); AnnotationSource<JavaClassSource> annotation = mdb.getAnnotation(MessageDriven.class); AnnotationSource<JavaClassSource> configs[] = annotation.getAnnotationArrayValue("activationConfig"); Assert.assertThat(configs.length, equalTo(1)); Assert.assertThat(configs[0].getStringValue("propertyName"), equalTo("destination")); Assert.assertThat(configs[0].getStringValue("propertyValue"), equalTo("queue/foo")); }