    @Test
    public void shouldLogErrorOnNonExistingConfigFile()
    {

        // Given
        MyAuthPlugin plugin = new MyAuthPlugin();
        AuthProviderOperations api = mock( AuthProviderOperations.class );
        AuthProviderOperations.Log log = mock( AuthProviderOperations.Log.class );

        when( api.neo4jHome() ).thenReturn( Paths.get( "" ) );
        when( api.log() ).thenReturn( log );

        // When
        plugin.initialize( api );

        // Then
        verify( log ).error( startsWith( "Failed to load config file" ) );
    }