### Question:
FileUploadEditor implements IsWidget, LeafAttributeEditor<String> { String getUploadFileUrl() { assert callback != null; return callback.getUploadFileUrl(); } @Inject  FileUploadEditor(final Event<org.dashbuilder.common.client.event.ValueChangeEvent<String>> valueChangeEvent,
                            final Event<NotificationEvent> workbenchNotification,
                            final View view); @PostConstruct void init(); void configure(final String fileUploadName, final FileUploadEditorCallback callback); void addHelpContent(final String title, final String content, final Placement placement); @Override void showErrors(List<EditorError> errors); @Override Widget asWidget(); @Override void setValue(final String value); @Override String getValue(); public View view; }### Answer:
@Test public void testGetUploadFileUrl() throws Exception { FileUploadEditor.FileUploadEditorCallback callback = mock(FileUploadEditor.FileUploadEditorCallback.class); presenter.callback = callback; presenter.getUploadFileUrl(); verify(callback, times(1)).getUploadFileUrl(); verify(callback, times(0)).getUploadFileName(); }