@Test(expected = IllegalStateException.class)
public void setUserInfoEndpoint_shouldFailWithNull() {

    UserInfoResolver userInfoResolver = new UserInfoResolver();
    userInfoResolver.setUserInfoEndpoint(null);
}