final String id_name = "id";
XQueryContext mockContext = EasyMock.createMock(XQueryContext.class);
expect(mockContext.getDatabase()).andReturn(null);
expect(mockContext.getSharedNamePool()).andReturn(new NamePool());
//expect(mockContext.getPrefixForURI(ATOM_NS)).andReturn(ATOM_PREFIX).times(2);
replay(mockContext);
MemTreeBuilder builder = new MemTreeBuilder(mockContext);