RuntimePluginBaseEditor extends BaseEditor<Plugin, DefaultMetadata> { @Override protected void loadContent() { getPluginServices().call(new RemoteCallback<PluginContent>() { @Override public void callback(final PluginContent response) { view().setFramework(response.getFrameworks()); view().setupContent(response, new ParameterizedCommand<Media>() { @Override public void execute(final Media media) { getPluginServices().call().deleteMedia(media); } }); view().hideBusyIndicator(); setOriginalHash(getContent().hashCode()); } }).getPluginContent(getCurrentPath()); } RuntimePluginBaseEditor(); protected  RuntimePluginBaseEditor(final BaseEditorView baseView); @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); Plugin getContent(); boolean mayClose(); @Override Validator getRenameValidator(); @Override Validator getCopyValidator(); void onPluginSaved(@Observes PluginSaved pluginSaved); void onPluginAdded(@Observes PluginAdded pluginAdded); void onPluginDeleted(@Observes PluginDeleted pluginDeleted); void onPluginRenamed(@Observes PluginRenamed pluginRenamed);  }
@Test public void loadContentTest() { final PluginContent pluginContent = mock(PluginContent.class); when(pluginServices.getPluginContent(Matchers.<Path>any())).thenReturn(pluginContent); assertNull(editor.getOriginalHash()); editor.loadContent(); verify(pluginServices).getPluginContent(Matchers.<Path>any()); verify(baseEditorView).setFramework(anyCollection()); verify(baseEditorView).setupContent(eq(pluginContent), Matchers.<ParameterizedCommand<Media>>any()); verify(baseEditorView).hideBusyIndicator(); assertNotNull(editor.getOriginalHash()); }