@Test public void testSDConfigs() { GenericSystemDescriptor mySystem = new GenericSystemDescriptor("input-system", "factory.class.name") .withSystemConfigs(ImmutableMap.of("custom-config-key", "custom-config-value")) .withDefaultStreamConfigs(ImmutableMap.of("custom-stream-config-key", "custom-stream-config-value")) .withDefaultStreamOffsetDefault(SystemStreamMetadata.OffsetType.UPCOMING); Map<String, String> generatedConfigs = mySystem.toConfig(); Map<String, String> expectedConfigs = ImmutableMap.of( "systems.input-system.samza.factory", "factory.class.name", "systems.input-system.custom-config-key", "custom-config-value", "systems.input-system.default.stream.custom-stream-config-key", "custom-stream-config-value", "systems.input-system.default.stream.samza.offset.default", "upcoming" ); assertEquals(expectedConfigs, generatedConfigs); }