final Session session = CassandraEmbeddedServerBuilder
.withEntities(Arrays.<Class<?>>asList(CompleteBean.class))
.withKeyspaceName("schema_dynamic_update_counter")
.cleanDataFilesAtStartup(true)
.buildNativeSessionOnly();
session.execute("DROP TABLE IF EXISTS new_counter_field");
session.execute("CREATE TABLE new_counter_field(id bigint, date timeuuid, existing_counter counter, PRIMARY KEY(id,date))");
//When
final PersistenceManagerFactory pmf = PersistenceManagerFactoryBuilder.builder(session.getCluster())
.withEntities(Arrays.<Class<?>>asList(ClusteredCounterEntityWithNewCounterField.class))