// Even when not specified, there is always the core0 core
testSolrCore("core0", 200);
testSolrCore("first", 200);
testSolrCore("second", 200);
solr.stop();
}
private void testSolrCore(String coreName, int expectedStatus) throws IOException {
String urlString = "http://localhost:8983/solr/" + coreName + "/select?q=*:*";
HttpURLConnection conn = performRequest(urlString);