@Override
    public Mono<Namespace> create(final NamespaceFormData createEntityForm) {
        return Mono.just(createEntityForm)
            .map(namespaceMapper::mapForm)
            .flatMap(namespaceRepository::create)
            .map(namespaceMapper::mapPojo);
    }
@Test
    @DisplayName("Creates a namespace by calling the namespace repository")
    public void testCreate() {
        final long namespaceId = 1L;
        final NamespaceFormData form = new NamespaceFormData()
            .name(UUID.randomUUID().toString());

        final NamespacePojo mappedForm = new NamespacePojo()
            .setName(form.getName());

        final NamespacePojo createdPojo = new NamespacePojo()
            .setId(namespaceId)
            .setName(form.getName())
            .setCreatedAt(LocalDateTime.now());

        final Namespace expected = new Namespace()
            .id(namespaceId)
            .name(form.getName());

        when(namespaceRepository.create(eq(mappedForm))).thenReturn(Mono.just(createdPojo));
        when(namespaceMapper.mapForm(eq(form))).thenReturn(mappedForm);
        when(namespaceMapper.mapPojo(eq(createdPojo))).thenReturn(expected);

        StepVerifier.create(namespaceService.create(form))
            .assertNext(actual -> assertThat(actual).isEqualTo(expected))
            .verifyComplete();

        verify(namespaceRepository, only()).create(eq(mappedForm));
        verify(namespaceMapper, times(1)).mapForm(eq(form));
        verify(namespaceMapper, times(1)).mapPojo(eq(createdPojo));
    }