### Question:
BcEntryPoint extends HttpServlet { @Override public void doGet(HttpServletRequest inRequest, HttpServletResponse inResponse) throws IOException { final PrintWriter out = inResponse.getWriter(); final String theSerial = inRequest.getParameter("m"); final String theFirmware = inRequest.getParameter("v"); final String hardware = inRequest.getParameter("h"); final Hardware.HARDWARE theHardware; LOGGER.debug("Connection from serial '"+theSerial+"' with firmware '"+theFirmware+"' and hardware '"+hardware+"'"); if (BcEntryPoint.isVersion(theFirmware) && (net.violet.common.utils.RegexTools.isInt(hardware) && (HARDWARE.V2 == (theHardware = HARDWARE.findById(Long.parseLong(hardware)))) && theHardware.checkIdentifier(theSerial))) { try { out.print(BcEntryPoint.process(theSerial)); } catch (final InterruptedException e) { BcEntryPoint.LOGGER.fatal(e, e); out.print(net.violet.common.StringShop.EMPTY_STRING); inResponse.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); } } else { inResponse.sendError(HttpServletResponse.SC_FORBIDDEN); } out.close(); }  @Override void doGet(HttpServletRequest inRequest, HttpServletResponse inResponse); static boolean isVersion(String arg);  }### Answer:
@Test public void testEmpty() throws IOException { final BcEntryPoint theServlet = new BcEntryPoint(); final HttpServletRequest theRequest = ServletTestBase.createEmptySessionRequest(); final HttpServletResponse theResponse = ServletTestBase.createResponse(); theServlet.doGet(theRequest, theResponse); Assert.assertEquals(HttpServletResponse.SC_FORBIDDEN, ((ServletTestResponse) theResponse).getStatus()); }