### Question:
ContinuumBuildAgentDavSessionProvider implements DavSessionProvider { public boolean attachSession( WebdavRequest request ) throws DavException { if ( !isAuthorized( request ) ) { throw new DavException( HttpServletResponse.SC_UNAUTHORIZED ); } request.setDavSession( new ContinuumBuildAgentDavSession() ); return true; } ContinuumBuildAgentDavSessionProvider( BuildAgentConfigurationService buildAgentConfigurationService ); boolean attachSession( WebdavRequest request ); void releaseSession( WebdavRequest request );  }### Answer:
@Test public void testAttachSession() throws Exception { assertNull( request.getDavSession() ); sessionProvider.attachSession( request ); assertNotNull( request.getDavSession() ); }