### Question:
AbstractLightblueProxyServlet extends HttpServlet { protected final String getInitParamOrDefault(String key, String defaultValue) { String value = getInitParameter(key); return value == null ? defaultValue : value; } @Inject  AbstractLightblueProxyServlet(CloseableHttpClient httpClient,
                                         Instance<LightblueClientConfiguration> configuration);   }### Answer:
@Test public void shouldGetServletInitParamOrDefault() throws ServletException { ServletConfig fakeServletConfig = new FakeServletConfig() .setInitParameter("testParam", "testValue"); AbstractLightblueProxyServlet servlet = getTestServlet(mock(CloseableHttpClient.class), null, null, fakeServletConfig); assertEquals("testValue", servlet.getInitParamOrDefault("testParam", "defaultValue")); assertEquals("testDefaultValue", servlet.getInitParamOrDefault("nullParam", "testDefaultValue")); }