### Question:
SolrServerFactory { public static SolrClient createSolrServer() throws ParserConfigurationException, IOException, SAXException, UnsupportedType { if(solrServer == null) { String className = Settings.getConfiguration().getString(SOLR_SERVER_CLASSNAME_PROPERTY_NAME); if (className != null && className.equals(EMBEDDEDSERVERCLASS)) { generateEmbeddedServer(); } else if (className != null && className.equals(HTTPSERVERCLASS)) { String solrServerBaseURL = Settings.getConfiguration().getString(SOLR_ENPOINT_PROPERTY_NAME); String coreName = Settings.getConfiguration().getString(CORENAME_PROPERTY_NAME); if (solrServerBaseURL != null && solrServerBaseURL.endsWith(SLASH)) { solrServerBaseURL = solrServerBaseURL+coreName; } else { solrServerBaseURL = solrServerBaseURL+SLASH+coreName; } log.info("SolrServerFactory.createSolrServer - the final solr server base url is "+solrServerBaseURL); solrServer = new HttpSolrClient.Builder(solrServerBaseURL).build(); } else { throw new UnsupportedType("0000","SolrServerFactory.createSolrServer - MetacatIndex doesn't support this solr server type: "+className); } } return solrServer; }  static SolrClient createSolrServer(); static SolrClient createSolrAdminClient(); static CoreContainer getCoreContainer(); static String getCollectionName(); static final String SOLR_HOME_PROPERTY_NAME; static final String SOLR_CONFIG_FILE_NAME_PROPERTY_NAME; static final String SOLR_COLLECTION_NAME_PROPERTY_NAME; static final String SOLR_SERVER_CLASSNAME_PROPERTY_NAME; static final String SOLR_ENPOINT_PROPERTY_NAME; static Log log; }### Answer:
@Test public void testCreateSolrServer() throws Exception { SolrClient server = SolrServerFactory.createSolrServer(); if(server == null) { assertTrue("testCreateSolrServer - the server shouldn't be null", true); } }