DatabaseRepositoryImpl extends AbstractCRUDRepository<Database> implements DatabaseRepository { @Override public Database update(Database entity) { BoundStatement bs = new BoundStatement(updateStmt); bindUpdate(bs, entity); getSession().execute(bs); return entity; } DatabaseRepositoryImpl(Session session); @Override Database create(Database entity); @Override Database update(Database entity); @Override List<Database> readAll(); @Override List<Database> readAll(Identifier id); @Override boolean exists(Identifier identifier); @Override Database read(Identifier identifier); @Override void delete(Database entity); @Override void delete(Identifier identifier);  }
@Test public void testUpdate() { System.out.println("update"); Database entity = Fixtures.createTestDatabase(); f.insertDatabase(entity); DatabaseRepository instance = new DatabaseRepositoryImpl(f.getSession()); entity.setDescription("This is a new description!"); Database result = instance.update(entity); assertEquals(entity, result); }