private void _test(String text, VFile vFile, CodePointer codePointer) {
Element root = new Element("element");
CodePointerXmlMessage xmlMessage = new CodePointerXmlMessage(text, codePointer, vFile);
xmlMessage.fillRequest(root);
CodePointerEvent event = CodePointerXmlMessage.createEvent(new MockTransport(), "someUser", root);
assertEquals("someUser", event.getRemoteUser());
assertEquals("Wrong code pointer restored", codePointer, event.getCodePointer());
assertEquals(vFile, event.getFile());
}