request = mock( HttpServletRequest.class );
when( request.getMethod() ).thenReturn( "GET" );
response = mock( HttpServletResponse.class );
servlet = spy( new GetImage() );
final ServletConfig servletConfig = mock( ServletConfig.class );
final ServletContext servletContext = mock( ServletContext.class );
when( servletContext.getMimeType( anyString() ) ).thenReturn( TEST_MIME_TYPE );
when( servletConfig.getServletContext() ).thenReturn( servletContext );
servlet.init( servletConfig );