private static void doTestSamzaPropertyInvalidConfig(SamzaPropertyLookup lookup) {
    // configure physical stream and have mapping from stream id to physical stream
    StreamConfig streamConfig = new StreamConfig(new MapConfig(ImmutableMap.of(
        String.format(StreamConfig.PHYSICAL_NAME_FOR_STREAM_ID, STREAM_ID), PHYSICAL_STREAM,
        String.format(StreamConfig.STREAM_ID_PREFIX, PHYSICAL_STREAM) + ".property", "value",
        JobConfig.JOB_DEFAULT_SYSTEM, SYSTEM)));
    try {
      lookup.doLookup(streamConfig, SYSTEM_STREAM_PHYSICAL);
      fail("Expected an exception due to having too many mappings to a physical stream");
    } catch (IllegalStateException e) {
      // expected to reach here
    }

    // two separate stream ids map to same physical stream
    streamConfig = new StreamConfig(new MapConfig(ImmutableMap.of(
        String.format(StreamConfig.PHYSICAL_NAME_FOR_STREAM_ID, STREAM_ID), PHYSICAL_STREAM,
        String.format(StreamConfig.PHYSICAL_NAME_FOR_STREAM_ID, OTHER_STREAM_ID), PHYSICAL_STREAM,
        JobConfig.JOB_DEFAULT_SYSTEM, SYSTEM)));
    try {
      lookup.doLookup(streamConfig, SYSTEM_STREAM_PHYSICAL);
      fail("Expected an exception due to having too many mappings to a physical stream");
    } catch (IllegalStateException e) {
      // expected to reach here
    }
  }
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