### Question:
CassandraSchemaHandler { public void dropSchema(String schemaName, KeyspaceManager keyspaceManager) throws Exception { try { log.debug("Dropping existing Cassandra schema: " + schemaName); keyspaceManager.dropKeyspace(schemaName); log.debug("Schema dropped"); waitToPropagate(); } catch (TTransportException te) { log.error("It looks like the Cassandra Server is down"); log.error(te.getMessage(), te); throw te; } catch (Exception e) { log.debug("The schema did not exist. No schema has been dropped"); } }  boolean schemaExists(Cluster cluster, String schemaName); boolean validSchema(Cluster cluster, String schemaName); void buildSchema(Cluster cluster, String schemaName); void buildSchema(Cluster cluster, String schemaName, boolean dropExisting); void dropSchema(String schemaName, KeyspaceManager keyspaceManager); void setSchemaWaitPeriod(int schemaWaitPeriod); void setWaitForSyncing(boolean waitForSyncing);  }### Answer:
@Test public void testDropSchema() throws Exception { CassandraSchemaHandler schemaHandler = new CassandraSchemaHandler(); Cluster cluster = new Cluster("localhost", Integer.parseInt(CassandraDatastoreTest.CASSANDRA_TESTING_PORT), false); KeyspaceManager keyspaceManager = Pelops.createKeyspaceManager(cluster); schemaHandler.buildSchema(cluster, "rayo"); schemaHandler.dropSchema("rayo", keyspaceManager); assertFalse(schemaHandler.schemaExists(cluster, "rayo")); }