### Question:
RestletServiceServlet extends ServerServlet { @SuppressWarnings("unchecked") @Override public Enumeration getInitParameterNames() { Set<String> names = new HashSet<String>(); Enumeration<String> parameterNames = servlet.getInitParameterNames(); while (parameterNames.hasMoreElements()) { names.add(parameterNames.nextElement()); } names.add(RESTLET_APPLICATION_INIT_PARAM); return Collections.enumeration(names); } RestletServiceServlet(final HttpServlet servlet, Class<? extends ServiceEndpointApplication> application,
            String name); @Override String getInitParameter(String name, String defaultValue); @Override String getServletName(); @Override String getInitParameter(String name); @SuppressWarnings("unchecked") @Override Enumeration getInitParameterNames(); @Override ServletConfig getServletConfig(); @Override ServletContext getServletContext(); @Override String getServletInfo(); @Override void log(String msg); @Override void log(String message, Throwable t);  }### Answer:
@Test public void shouldGetInitParameterNames() { given(servlet.getInitParameterNames()).willReturn(Collections.enumeration(Collections.EMPTY_SET)); Enumeration initParameterNames = restletServiceServlet.getInitParameterNames(); boolean found = false; while (initParameterNames.hasMoreElements()) { if ("org.restlet.application".equals(initParameterNames.nextElement())) { found = true; break; } } assertTrue(found); }