### Question:
TopologyConfig { public static TopologyConfig read(final Conf conf) { return new Reader().read(conf); } private  TopologyConfig(final String type,
                           final String name,
                           final String description,
                           final String version,
                           final Conf config); static TopologyConfig read(final Conf conf); String type(); Optional<String> name(); Optional<String> description(); Optional<String> version(); Optional<Conf> config(); static final String TOPOLOGY_NAME_CONFIG; static final String TOPOLOGY_DESCRIPTION_CONFIG; static final String TOPOLOGY_PROVIDER_ALIAS_CONFIG; static final String TOPOLOGY_PROVIDER_VERSION_CONFIG; static final String TOPOLOGY_STREAMS_CONFIG; }### Answer:
@Test public void shouldThrowExceptionGivenConfWithMissingType() { MissingConfException exception = assertThrows( MissingConfException.class, () -> TopologyConfig.read(Conf.empty())); Assertions.assertEquals("Missing config parameter with name : topology", exception.getMessage()); }