/** @see DATASOLR-72 */
  @Test
  public void schemaPresentCheckSouldIndicateFalseWhenServerReturnsNotFound()
      throws SolrServerException, IOException {

    Mockito.when(solrServerMock.request(Mockito.any(SolrRequest.class)))
        .thenThrow(
            new SolrServerException(
                new SolrException(
                    org.apache.solr.common.SolrException.ErrorCode.NOT_FOUND, "boom")));
    Assert.assertFalse(writer.isSchemaPresent("collection1"));
  }
  /** @see DATASOLR-72 */
  @Test
  public void schemaPresentCheckSouldReturnTrueIfVersionCorrectlyReturnedFromServer() {

    setUpJsonResponse(JSON_RESPONSE_SCHEMA_VERSION);
    Assert.assertTrue(writer.isSchemaPresent("collection1"));
  }