public void should_check_for_common_operation_on_found_clustered_entity() throws Exception {
long partitionKey = RandomUtils.nextLong(0,Long.MAX_VALUE);
insertClusteredValues(partitionKey, 1, "name1", 1);
ClusteredEntity clusteredEntity = manager.sliceQuery(ClusteredEntity.class)
.forSelect()
.withPartitionComponents(partitionKey)
.orderByAscending()
.getOne();
// Check for update
clusteredEntity.setValue("dirty");
manager.update(clusteredEntity);
ClusteredEntity check = manager.find(ClusteredEntity.class, clusteredEntity.getId());
assertThat(check.getValue()).isEqualTo("dirty");
// Check for refresh
check.setValue("dirty_again");
manager.update(check);
manager.refresh(clusteredEntity);
assertThat(clusteredEntity.getValue()).isEqualTo("dirty_again");