@Test
public void testReadString() throws Exception {

    Properties properties = new Properties();
    properties.setProperty("source.source_1.zookeeper", "localhost");
    Properties globalProperties = new Properties();
    final String connStr = ComponentPropertyReader.readString(properties, globalProperties,
        "zookeeper", "source_1", ComponentMetadata.builder()
            .namespace("global")
            .name("source")
            .id("1234")
            .type(ComponentType.SOURCE)
            .build());
    assertEquals("localhost", connStr);
}