### Question:
DefaultHttpContext implements WebContainerContext { public URL getResource( final String name ) { final String normalizedname = Path.normalizeResourcePath( name ); LOG.debug( "Searching bundle [" + m_bundle + "] for resource [" + normalizedname + "]" ); return m_bundle.getResource( normalizedname ); } DefaultHttpContext( final Bundle bundle ); boolean handleSecurity( final HttpServletRequest httpServletRequest,
                                   final HttpServletResponse httpServletResponse ); URL getResource( final String name ); String getMimeType( String name ); Set<String> getResourcePaths( final String name ); @Override String toString();  }### Answer:
@Test public void getResource() throws MalformedURLException { URL url = new URL( "file: expect( m_bundle.getResource( "test" ) ).andReturn( url ); replay( m_bundle ); m_contextUnderTest.getResource( "test" ); verify( m_bundle ); }