### Question:
CallActivityPropertyReader extends MultipleInstanceActivityPropertyReader { public boolean isAdHocAutostart() { return CustomElement.autoStart.of(element).get(); } CallActivityPropertyReader(CallActivity callActivity, BPMNDiagram diagram, DefinitionResolver definitionResolver); String getCalledElement(); boolean isIndependent(); boolean isAbortParent(); boolean isWaitForCompletion(); boolean isAsync(); boolean isCase(); boolean isAdHocAutostart(); String getSlaDueDate();  }### Answer:
@Test public void testIsAdHocAutostart_true() { String id = UUID.randomUUID().toString(); CallActivity callActivity = bpmn2.createCallActivity(); callActivity.setId(id); CustomElement.autoStart.of(callActivity).set(Boolean.TRUE); tested = new CallActivityPropertyReader(callActivity, definitionResolver.getDiagram(), definitionResolver); assertTrue(tested.isAdHocAutostart()); }
@Test public void testIsAdHocAutostart_false() { String id = UUID.randomUUID().toString(); CallActivity callActivity = bpmn2.createCallActivity(); callActivity.setId(id); CustomElement.autoStart.of(callActivity).set(Boolean.FALSE); tested = new CallActivityPropertyReader(callActivity, definitionResolver.getDiagram(), definitionResolver); assertFalse(tested.isAdHocAutostart()); }