### Question:
DMNElementsSynchronizer { void synchronizeBusinessKnowledgeModelNode(final BusinessKnowledgeModel from, final BusinessKnowledgeModel to) { to.setVariable(from.getVariable()); } @Inject  DMNElementsSynchronizer(final DMNDiagramsSession dmnDiagramsSession,
                                   final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent,
                                   final DMNGraphUtils graphUtils,
                                   final NodeTextSetter nodeTextSetter); void onExpressionEditorChanged(final @Observes ExpressionEditorChanged event); void onPropertyChanged(final @Observes FormFieldChanged event); void synchronizeElementsFrom(final DRGElement drgElement); void synchronizeFromNode(final Optional<Node> node);  }### Answer:
@Test public void testSynchronizeBusinessKnowledgeModelNode() { final BusinessKnowledgeModel from = mock(BusinessKnowledgeModel.class); final BusinessKnowledgeModel to = mock(BusinessKnowledgeModel.class); final InformationItemPrimary variable = mock(InformationItemPrimary.class); when(from.getVariable()).thenReturn(variable); synchronizer.synchronizeBusinessKnowledgeModelNode(from, to); verify(to).setVariable(variable); }