IDE.openEditor(activePage, project.getFile("/src/main/resources/org/qwickie/test/project/issue45/mobile/RegistrationPage.html"), true);
final Region region = new Region(263, 1);
WicketHyperlink wh = new WicketHyperlink(region, "test", "java");
wh.open();
final ISelectionService selectionService = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getSelectionService();
final ITextSelection selection = (ITextSelection) selectionService.getSelection();
assertEquals("test", selection.getText());
assertEquals(21, selection.getStartLine());
assertEquals(21, selection.getEndLine());
final IResource resource = ResourceUtil.getResource(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor().getEditorInput());
assertEquals("RegistrationPage.java", resource.getName());