@Test
public void testReadIntegerFromGlobal() {

    Properties properties = new Properties();
    Properties globalProperties = new Properties();
    globalProperties.setProperty("source.source_1.brokers", "localhost:9092");
    globalProperties.setProperty("source.source_1.topic-name", "x");
    globalProperties.setProperty("processor.processor_1.queueSize", "100");
    globalProperties.setProperty("source.source_1.zookeeper", "localhost:2181");
    final int connStr = ComponentPropertyReader.readInteger(properties, globalProperties,
        "queueSize", "processor_1", ComponentMetadata.builder()
            .namespace("global")
            .name("source")
            .id("1234")
            .type(ComponentType.PROCESSOR)
            .build());
    assertEquals(100, connStr);
}