Schemas { public static void createTable(KeyValueService kvs, TableReference tableRef, TableDefinition definition) { createTables(kvs, ImmutableMap.of(tableRef, definition)); } private  Schemas(); static TableReference appendIndexSuffix(String indexName, IndexDefinition definition); static void createIndices(KeyValueService kvs,
            Map<TableReference, IndexDefinition> fullIndexNameToDefinition); static void createTable(KeyValueService kvs, TableReference tableRef, TableDefinition definition); static void createTable(Schema schema, KeyValueService kvs, TableReference tableRef); static void createTables(KeyValueService kvs, Map<TableReference, TableDefinition>  tableRefToDefinition); static String getTableReferenceString(String tableName, Namespace namespace); static boolean isTableNameValid(String tableName); static void createTablesAndIndexes(Schema schema, KeyValueService kvs); static void deleteTablesAndIndexes(Schema schema, KeyValueService kvs); static void truncateTablesAndIndexes(Schema schema, KeyValueService kvs);  }
@Test public void testCreateTable() { mockery.checking(new Expectations(){{ oneOf(kvs).createTables(with(tableMapContainsEntry(TABLE_REF, getSimpleTableDefinitionAsBytes(TABLE_REF)))); }}); Schemas.createTable(kvs, TABLE_REF, getSimpleTableDefinition(TABLE_REF)); }