@Test
public void should_update_with_cas_conditions_using_cql3_column_name() throws Exception {
//Given
final Long primaryKey = RandomUtils.nextLong(0,Long.MAX_VALUE);
final CompleteBean entity = new CompleteBean();
entity.setId(primaryKey);
entity.setAge(32L);
entity.setName("John");
List<String> friends = new ArrayList<>();
friends.add("Paul");
entity.setFriends(friends);
final CompleteBean managed = manager.insert(entity);
managed.setName("Helen");
managed.getFriends().add("George");
//When
manager.update(managed, ifConditions(new CASCondition("age_in_years", 32L)));
//Then
final CompleteBean found = manager.find(CompleteBean.class, primaryKey);
assertThat(found).isNotNull();
assertThat(found.getName()).isEqualTo("Helen");
}