@Test
public void testDefaultComposite() {
CassandraPersistentEntity<?> key = context.getPersistentEntity(DefaultKey.class);
CassandraPersistentProperty stringZero = key.getPersistentProperty("stringZero");
CassandraPersistentProperty stringOne = key.getPersistentProperty("stringOne");
assertTrue(stringZero.getColumnName().equals("stringZero"));
assertTrue(stringOne.getColumnName().equals("stringOne"));
assertEquals("stringzero", stringZero.getColumnName().toCql());
assertEquals("stringone", stringOne.getColumnName().toCql());
List<CqlIdentifier> names = Arrays.asList(new CqlIdentifier[] { cqlId("stringZero"), cqlId("stringOne") });
CassandraPersistentEntity<?> entity = context.getPersistentEntity(DefaultComposite.class);
assertEquals(names, entity.getPersistentProperty("primaryKey").getColumnNames());