RepositoryModel repositoryModel = repoSetup.getRepositoryModel();
repositoryModel.create(repositoryName);
assertTrue(repositoryModel.waitUntilRepositoryInState(repositoryName, RepositoryDefinition.RepositoryLifecycleState.ACTIVE, 60000L));
LRepository repository = repositoryManager.getRepository(repositoryName);
TableManager tableManager = repository.getTableManager();
List<RepositoryTable> tables = tableManager.getTables();
assertEquals(1, tables.size());
assertEquals("record", tables.get(0).getName());
tableManager.createTable("foo");
assertEquals(2, tableManager.getTables().size());
assertTrue(tableManager.tableExists("foo"));
repository.getTable("foo");
tableManager.dropTable("foo");
assertEquals(1, tableManager.getTables().size());
}