### Question:
RepositoryServlet extends AbstractWebdavServlet implements ConfigurationListener { public ManagedRepository getRepository( String prefix ) throws RepositoryAdminException { return repositoryRegistry.getManagedRepository( prefix ); }  @Override void init( ServletConfig servletConfig ); void initServers( ServletConfig servletConfig ); @Override void configurationEvent( ConfigurationEvent event ); ManagedRepository getRepository( String prefix ); @Override DavSessionProvider getDavSessionProvider(); @Override void setDavSessionProvider( final DavSessionProvider davSessionProvider ); @Override DavLocatorFactory getLocatorFactory(); @Override void setLocatorFactory( final DavLocatorFactory davLocatorFactory ); @Override DavResourceFactory getResourceFactory(); @Override void setResourceFactory( final DavResourceFactory davResourceFactory ); @Override String getAuthenticateHeaderValue(); String getAuthenticateHeaderValue( String repository ); @Override void destroy();  }### Answer:
@Test public void testGetRepository() throws Exception { RepositoryServlet servlet = RepositoryServlet.class.cast( findServlet( "repository" ) ); assertNotNull( servlet ); assertRepositoryValid( servlet, REPOID_INTERNAL ); }