### Question:
DMNElementsSynchronizer { void synchronizeDecisionNode(final Decision from, final Decision to) { to.setQuestion(from.getQuestion()); to.setAllowedAnswers(from.getAllowedAnswers()); to.setExpression(from.getExpression()); 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 testSynchronizeDecisionNodeNode() { final Decision from = mock(Decision.class); final Decision to = mock(Decision.class); final Question question = mock(Question.class); final AllowedAnswers allowedAnswers = mock(AllowedAnswers.class); final Expression expression = mock(Expression.class); final InformationItemPrimary variable = mock(InformationItemPrimary.class); when(from.getQuestion()).thenReturn(question); when(from.getAllowedAnswers()).thenReturn(allowedAnswers); when(from.getExpression()).thenReturn(expression); when(from.getVariable()).thenReturn(variable); synchronizer.synchronizeDecisionNode(from, to); verify(to).setQuestion(question); verify(to).setAllowedAnswers(allowedAnswers); verify(to).setExpression(expression); verify(to).setVariable(variable); }