.failureHandler(new SimpleUrlAuthenticationFailureHandler()) no longer return JSON. Instead, it return a html page.
Try a post to /api/core/login with wrong credential return a HTML instead of JSON
LemonAuthenticationFailureHandler need to be implemented