@Test
public void addProjectionInterfaceThrowsExceptionWhenMultipleDefaultsPresent() {

    // given
    var projectionName = "any-name";
    var projectionTarget = (Class) Integer.class;
    projectionService.defaultProjectionClassMap.put(projectionTarget, annotatedClass);
    given(namedProjectionAnnotationMock.name()).willReturn(projectionName);
    given(namedProjectionAnnotationMock.target()).willReturn(projectionTarget);
    given(namedProjectionAnnotationMock.defaultProjection()).willReturn(true);
    // when / then
    assertThatThrownBy(() -> projectionService.addProjectionInterface(namedProjectionAnnotationMock, annotatedClass))
            .isInstanceOf(MultipleDefaultProjectionsException.class)
            .hasMessage(String.format("Multiple interfaces annotated with @NamedInterface " +
                    "are marked as the default projections for target class '%s'!", projectionTarget.getName()));
}