@Test public void testFindByHash() throws Exception { List<TopicDto> topics = new ArrayList<>(); TopicDto topicDto = new TopicDto(); topicDto.setId("6123"); topics.add(topicDto); byte[] hash = "hash".getBytes(); int simpleHash = 123; TopicListEntryDto topicListEntryDto = new TopicListEntryDto(123, hash, topics); topicListEntryDao.save(topicListEntryDto); CassandraTopicListEntry topicListEntry = topicListEntryDao.findByHash(hash); Assert.assertEquals(simpleHash, topicListEntry.getSimpleHash()); } }