### Question:
GenerateXML implements IObjectActionDelegate { public void selectionChanged(IAction action, ISelection selection) { _selection = selection; } GenerateXML(); void setActivePart(IAction action, IWorkbenchPart targetPart); void run(IAction action); void selectionChanged(IAction action, ISelection selection);  }### Answer:
@Test public void testSelectionChanged_1() throws Exception { GenerateXML fixture = new GenerateXML(); fixture.selectionChanged(new NewWizardAction(), new TreeSelection()); IAction action = new NewWizardAction(); ISelection selection = new TreeSelection(); fixture.selectionChanged(action, selection); }