TableRepositoryImpl extends AbstractCRUDRepository<Table> implements TableRepository { @Override public Table create(Table entity) { Statement s = new SimpleStatement(String.format(CREATE_DOC_TABLE_CQL, entity.toDbTable())); getSession().execute(s); BoundStatement bs = new BoundStatement(createStmt); bindCreate(bs, entity); getSession().execute(bs); return entity; } TableRepositoryImpl(Session session); @Override boolean exists(Identifier identifier); @Override Table read(Identifier identifier); @Override Table create(Table entity); @Override Table update(Table entity); @Override void delete(Table entity); @Override void delete(Identifier id); @Override List<Table> readAll(Identifier id); @Override List<Table> readAll(); @Override long countAllTables(String database); @Override long countTableSize(String database, String tableName);  }
@Test public void testCreate() { System.out.println("create"); Table entity = Fixtures.createTestTable(); TableRepository instance = new TableRepositoryImpl(f.getSession()); Table result = instance.create(entity); assertEquals(entity, result); }