### Question:
PropertyReaderFactory { public FlowElementPropertyReader of(FlowElement el) { return new FlowElementPropertyReader(el, diagram, definitionResolver.getShape(el.getId()), definitionResolver.getResolutionFactor()); } PropertyReaderFactory(DefinitionResolver definitionResolver); FlowElementPropertyReader of(FlowElement el); LanePropertyReader of(Lane el); LanePropertyReader of(Lane el, Lane elParent); SequenceFlowPropertyReader of(SequenceFlow el); AssociationPropertyReader of(Association el); GatewayPropertyReader of(Gateway el); TaskPropertyReader of(Task el); UserTaskPropertyReader of(UserTask el); ScriptTaskPropertyReader of(ScriptTask el); GenericServiceTaskPropertyReader of(ServiceTask el); BusinessRuleTaskPropertyReader of(BusinessRuleTask el); Optional<ServiceTaskPropertyReader> ofCustom(Task el); CallActivityPropertyReader of(CallActivity el); CatchEventPropertyReader of(CatchEvent el); ThrowEventPropertyReader of(ThrowEvent el); SubProcessPropertyReader of(SubProcess el); AdHocSubProcessPropertyReader of(AdHocSubProcess el); MultipleInstanceSubProcessPropertyReader ofMultipleInstance(SubProcess el); ProcessPropertyReader of(Process el); TextAnnotationPropertyReader of(TextAnnotation el); DefinitionsPropertyReader of(Definitions el); DataObjectPropertyReader of(DataObjectReference el);  }### Answer:
@Test public void ofDefinition() { assertTrue(tested.of(definitions) instanceof DefinitionsPropertyReader); }