@Test public void testSimplePut() throws InterruptedException { KafkaStore<String, String> kafkaStore = StoreUtils.createAndInitSSLKafkaStoreInstance( zkConnect, zkClient, clientSslConfigs, requireSSLClientAuth()); String key = "Kafka"; String value = "Rocks"; try { try { kafkaStore.put(key, value); } catch (StoreException e) { throw new RuntimeException("Kafka store put(Kafka, Rocks) operation failed", e); } String retrievedValue = null; try { retrievedValue = kafkaStore.get(key); } catch (StoreException e) { throw new RuntimeException("Kafka store get(Kafka) operation failed", e); } assertEquals("Retrieved value should match entered value", value, retrievedValue); } finally { kafkaStore.close(); } }