public void save(BasicAuthConfiguration basicAuthConfiguration) {
        save(null, basicAuthConfiguration);
    }
@Test
    void secure() throws TimeoutException {
        IllegalArgumentException illegalArgumentException = Assertions.assertThrows(
            IllegalArgumentException.class,
            () -> basicAuthService.save(basicAuthConfiguration.withUsernamePassword("not-an-email", "password"))
        );

        assertThat(illegalArgumentException.getMessage(), is("Invalid username for Basic Authentication. Please provide a valid email address."));

        assertConfigurationMatchesApplicationYaml();

        basicAuthService.save(basicAuthConfiguration.withUsernamePassword("some@email.com", "password"));
        awaitOssAuthEventApiCall("some@email.com");
    }