}
@Test
public void should_persist_and_find_entity_having_compound_id_with_enum() throws Exception {
long id = RandomUtils.nextLong(0,Long.MAX_VALUE);
ClusteredMessageId messageId = new ClusteredMessageId(id, Type.TEXT);
ClusteredMessageEntity message = new ClusteredMessageEntity(messageId, "a message");
manager.insert(message);
ClusteredMessageEntity found = manager.find(ClusteredMessageEntity.class, messageId);
ClusteredMessageId foundCompoundKey = found.getId();
assertThat(foundCompoundKey.getId()).isEqualTo(id);
assertThat(foundCompoundKey.getType()).isEqualTo(Type.TEXT);
}