testLinkText("file:4", "file", 3, 3);
}
private void testLinkText(String expected, String path, int line1, int line2) {
CodePointerEvent event = EventFactory.createCodePointerEvent(new MockTransport(), "remoteUser",
VFile.create(path), line1, 22, line2, 43, "comment");
IncomingCodePointerMessage message = new IncomingCodePointerMessage(event, null);
assertEquals("Incorrect link text", expected, message.getLinkText());
}