### Question:
DMNElementsSynchronizer { void synchronizeKnowledgeSourceNode(final KnowledgeSource from, final KnowledgeSource to) { to.setType(from.getType()); to.setLocationURI(from.getLocationURI()); } @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 testSynchronizeKnowledgeSourceNode() { final KnowledgeSource from = mock(KnowledgeSource.class); final KnowledgeSource to = mock(KnowledgeSource.class); final KnowledgeSourceType type = mock(KnowledgeSourceType.class); final LocationURI locationURI = mock(LocationURI.class); when(from.getType()).thenReturn(type); when(from.getLocationURI()).thenReturn(locationURI); synchronizer.synchronizeKnowledgeSourceNode(from, to); verify(to).setType(type); verify(to).setLocationURI(locationURI); }