private static void doTestSamzaPropertyDoesNotExist(String propertyName, SamzaPropertyAssertion assertion) {
    assertion.doAssertion(new StreamConfig(new MapConfig(ImmutableMap.of(
        // just put in some value which will be ignored
        String.format(StreamConfig.STREAM_ID_PREFIX, STREAM_ID) + SAMZA_IGNORED_PROPERTY, UNUSED_VALUE))),
        SYSTEM_STREAM);

    /*
     * Won't use streams.<streamId>.<property> if streamId is mapped to a physical stream
     */
    assertion.doAssertion(new StreamConfig(new MapConfig(ImmutableMap.of(
        String.format(StreamConfig.STREAM_ID_PREFIX, STREAM_ID) + propertyName, UNUSED_VALUE,
        // all streams need to have a system
        JobConfig.JOB_DEFAULT_SYSTEM, SYSTEM,
        // map the stream id to the physical stream
        String.format(StreamConfig.PHYSICAL_NAME_FOR_STREAM_ID, STREAM_ID), PHYSICAL_STREAM))),
        SYSTEM_STREAM);

    /*
     * Won't use systems.<system>.streams.<stream>.<property> if stream is mapped to a physical stream and the property
     * is only specified using the physical stream
     */
    assertion.doAssertion(new StreamConfig(new MapConfig(ImmutableMap.of(
        String.format(StreamConfig.STREAM_PREFIX, SYSTEM, PHYSICAL_STREAM) + propertyName, UNUSED_VALUE,
        // all streams need to have a system
        JobConfig.JOB_DEFAULT_SYSTEM, SYSTEM,
        // map the stream id to the physical stream
        String.format(StreamConfig.PHYSICAL_NAME_FOR_STREAM_ID, STREAM_ID), PHYSICAL_STREAM))),
        SYSTEM_STREAM);

    /*
     * Won't use systems.<system>.streams.<stream>.<property> if stream is mapped to a physical stream and there is no
     * system mapping for the stream id
     */
    assertion.doAssertion(new StreamConfig(new MapConfig(ImmutableMap.of(
        String.format(StreamConfig.STREAM_PREFIX, SYSTEM, STREAM_ID) + propertyName, UNUSED_VALUE,
        // map the stream id to the physical stream
        String.format(StreamConfig.PHYSICAL_NAME_FOR_STREAM_ID, STREAM_ID), PHYSICAL_STREAM))),
        SYSTEM_STREAM_PHYSICAL);
  }
Tests for Samza property access in which multiple streams are configured.
Only testing cases in which streams may share some properties.
samza-core/src/test/java/org/apache/samza/config/TestStreamConfig.java