### Question:
DefaultExternalContentManager extends Module implements ExternalContentManager { @Override public void initModule() throws ModuleInitializationException { try { Server s_server = getServer(); m_userAgent = getParameter("userAgent"); if (m_userAgent == null) { m_userAgent = "Fedora"; } fedoraServerPort = s_server.getParameter("fedoraServerPort"); fedoraServerHost = s_server.getParameter("fedoraServerHost"); fedoraServerRedirectPort = s_server.getParameter("fedoraRedirectPort"); m_httpconfig = s_server.getWebClientConfig(); if (m_httpconfig.getUserAgent() == null ) { m_httpconfig.setUserAgent(m_userAgent); } m_http = new WebClient(m_httpconfig); } catch (Throwable th) { throw new ModuleInitializationException("[DefaultExternalContentManager] " + "An external content manager " + "could not be instantiated. The underlying error was a " + th.getClass() .getName() + "The message was \"" + th.getMessage() + "\".", getRole(), th); } } DefaultExternalContentManager(Map<String, String> moduleParameters,
                                         Server server,
                                         String role); @Override void initModule(); @Override MIMETypedStream getExternalContent(ContentManagerParams params);  }### Answer:
@Test public void testInit() throws ModuleInitializationException { when(mockClientConfig.getMaxConnPerHost()).thenReturn(5); when(mockClientConfig.getMaxTotalConn()).thenReturn(5); testObj.initModule(); }