@Test
void getResourceDescriptionShouldReturnEmptyOptionalIfNoProviderReturnsAValue() {

    // Arrange
    ResourceDescriptionProvider p1 = mock(ResourceDescriptionProvider.class);
    ResourceDescriptionProvider p2 = mock(ResourceDescriptionProvider.class);
    when(p1.getAsciidocDescription(any())).thenReturn(Optional.empty());
    when(p2.getAsciidocDescription(any())).thenReturn(Optional.empty());
    List<ResourceDescriptionProvider> providers = Arrays.asList(p1, p2);
    ResourceDescriptionProvider resourceDescriptionProvider = new ComposedResourceDescriptionProvider(providers);
    // Act
    Optional<String> resourceDescription = resourceDescriptionProvider.getAsciidocDescription("some_resource");
    // Assert
    assertThat(resourceDescription).isEmpty();
    verify(p1, times(1)).getAsciidocDescription("some_resource");
    verify(p2, times(1)).getAsciidocDescription("some_resource");
}