@Override
    public Decorator create(String type, Map<String, Object> config, String stream, int order) {
        return DecoratorImpl.create(type, config, Optional.of(stream), order);
    }
@Test
    public void createWithStreamCreatesDecorator() {
        final Decorator decorator = decoratorService.create("type", singletonMap("foo", "bar"), "000000000000000000000001", 42);
        assertThat(decorator.id()).isNull();
        assertThat(decorator.type()).isEqualTo("type");
        assertThat(decorator.order()).isEqualTo(42);
        assertThat(decorator.config())
                .hasSize(1)
                .containsEntry("foo", "bar");
        assertThat(decorator.stream())
                .isPresent()
                .contains("000000000000000000000001");
    }