@Test
public void getInstanceThrowsIllegalArgumentExceptionWhenProviderListIsEmpty() {

    assertThatExceptionOfType(IllegalArgumentException.class)
            .isThrownBy(
                    () -> AuthenticationChain.getInstance(Collections.emptyList(), authenticationFailureAggregator,
                            messageDispatcher))
            .withMessage("The argument 'authenticationProviders' must not be empty!")
            .withNoCause();
}