@@ -0,0 +1,1679 @@
+package net.sf.webdav.methods;%0A%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0Aimport net.sf.webdav.ResourceLocks;%0Aimport net.sf.webdav.WebdavStore;%0A%0Aimport org.jmock.Mock;%0Aimport org.jmock.MockObjectTestCase;%0A%0Apublic class DoGetTest extends MockObjectTestCase %7B%0A%0A    public void testDoGet() throws Exception %7B%0A%0A        Mock mockWebdav = mock(WebdavStore.class);%0A        mockWebdav.expects(exactly(2)).method(%22isFolder%22).with(%0A                eq(%22/index.html%22)).will(returnValue(false));%0A        mockWebdav.expects(exactly(2)).method(%22objectExists%22).with(%0A                eq(%22/index.html%22)).will(returnValue(false));%0A        mockWebdav.expects(once()).method(%22isResource%22).with(eq(%22/index.html%22))%0A                .will(returnValue(false));%0A%0A        DoGet doGet = new DoGet((WebdavStore) mockWebdav.proxy(), null, null,%0A                new ResourceLocks(), 0, 0);%0A        Mock mockReq = mock(HttpServletRequest.class);%0A%0A        mockReq.expects(once()).method(%22getAttribute%22).with(%0A                eq(%22javax.servlet.include.request_uri%22))%0A                .will(returnValue(null));%0A%0A        mockReq.expects(once()).method(%22getPathInfo%22).withNoArguments().will(%0A                returnValue(%22/index.html%22));%0A        mockReq.expects(once()).method(%22getRequestURI%22).withNoArguments().will(%0A                returnValue(%22/index.html%22));%0A%0A        Mock mockRes = mock(HttpServletResponse.class);%0A        mockRes.expects(once()).method(%22sendError%22).with(eq(404),%0A                eq(%22/index.html%22));%0A%0A        doGet.execute((HttpServletRequest) mockReq.proxy(),%0A                (HttpServletResponse) mockRes.proxy(), true, %22text/html%22);%0A%0A    %7D%0A%7D%0A

add a test for doGet