editorTracker.start();
editorTracker.addListener(markdownListener);
editorTracker.editorShown(editorPart);
IPropertyListener propertyListener = propertyListenerCaptor.getValue();
given(editorPart.isDirty()).willReturn(false);
propertyListener.propertyChanged(editorPart, IEditorPart.PROP_DIRTY);
// then
verify(markdownListener, times(2)).notifyEditorFile(editorIFile);
verifyNoMoreInteractions(markdownListener);
}