public static <K, V, S extends StateStore> Materialized<K, V, S> as(final DslStoreSuppliers storeSuppliers) {
        Objects.requireNonNull(storeSuppliers, "store type can't be null");
        return new Materialized<>(storeSuppliers);
    }
@Test
    public void shouldThrowTopologyExceptionIfStoreNameExceedsMaxAllowedLength() {
        final StringBuffer invalidStoreNameBuffer = new StringBuffer();
        final int maxNameLength = 249;

        for (int i = 0; i < maxNameLength + 1; i++) {
            invalidStoreNameBuffer.append('a');
        }

        final String invalidStoreName = invalidStoreNameBuffer.toString();

        final TopologyException e = assertThrows(TopologyException.class,
            () -> Materialized.as(invalidStoreName));
        assertEquals(e.getMessage(), "Invalid topology: Name is illegal, it can't be longer than " + maxNameLength +
                " characters, name: " + invalidStoreName);
    }