@Test(expected=ReferencedSchemaException.class)
public void dropSchemaUsed() throws Exception
{

    String sql = "DROP SCHEMA S RESTRICT";
    AkibanInformationSchema ais = factory();
    
    assertNotNull(ais.getTable("s", "t"));
    
    StatementNode stmt = parser.parseStatement(sql);
    assertTrue (stmt instanceof DropSchemaNode);
    DDLFunctions ddlFunctions = new TableDDLTest.DDLFunctionsMock(ais);
    
    SchemaDDL.dropSchema(ddlFunctions, null, (DropSchemaNode)stmt, null);
}