{
EntityManagerFactoryImpl emf = getEntityManagerFactory();
CassandraPropertyReader reader = new CassandraPropertyReader(null, emf.getKunderaMetadataInstance()
.getApplicationMetadata().getPersistenceUnitMetadata("cassandraProperties"));
reader.read(persistenceUnit);
CassandraSchemaManager manager = new CassandraSchemaManager(ThriftClientFactory.class.getName(), null,
emf.getKunderaMetadataInstance());
boolean valid = manager.validateEntity(ValidCounterColumnFamily.class);
Assert.assertTrue(valid);
valid = manager.validateEntity(InvalidCounterColumnEntity.class);
Assert.assertFalse(valid);
}