final Field dateField = EmbeddedKeyWithCompoundPartitionKey.class.getDeclaredField("date");
parser = new EmbeddedIdParser(new PropertyParsingContext(context, idField));
EmbeddedIdProperties props = parser.parseEmbeddedId(EmbeddedKeyWithCompoundPartitionKey.class, propertyParser);
final PartitionComponents partitionComponents = props.getPartitionComponents();
assertThat(partitionComponents.getComponentClasses()).containsExactly(Long.class, String.class);
assertThat(partitionComponents.getComponentFields()).containsExactly(idField, typeField);
assertThat(partitionComponents.getComponentNames()).containsExactly("id", "type");
assertThat(partitionComponents.getCQL3ComponentNames()).containsExactly("id", "type");
final ClusteringComponents clusteringComponents = props.getClusteringComponents();
assertThat(clusteringComponents.getComponentClasses()).containsExactly(UUID.class);
assertThat(clusteringComponents.getComponentFields()).containsExactly(dateField);
assertThat(clusteringComponents.getComponentNames()).containsExactly("date");