### Question:
AdHocSubProcessPropertyReader extends SubProcessPropertyReader { public String getAdHocActivationCondition() { return CustomElement.customActivationCondition.of(element).get(); } AdHocSubProcessPropertyReader(AdHocSubProcess element, BPMNDiagram diagram, DefinitionResolver definitionResolver); String getAdHocActivationCondition(); ScriptTypeValue getAdHocCompletionCondition(); String getAdHocOrdering(); boolean isAdHocAutostart();  }### Answer:
@Test public void testIsAdHocActivationCondition() { AdHocSubProcess adHocSubProcess = bpmn2.createAdHocSubProcess(); CustomElement.customActivationCondition.of(adHocSubProcess).set("some condition"); tested = new AdHocSubProcessPropertyReader(adHocSubProcess, definitionResolverReal.getDiagram(), definitionResolverReal); assertEquals(asCData("some condition"), tested.getAdHocActivationCondition()); }