final IHyperlink hyperlink = hyperlinks[0];
assertEquals(hyperlink.getHyperlinkText(), "Open java file and jump to wicket:id \"test\"");
final IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
try {
activePage.closeAllEditors(false);
IDE.openEditor(activePage, file);
} catch (PartInitException e) {
}
hyperlink.open();
final IEditorPart activeEditor = activePage.getActiveEditor();