UserInfoResolver { public UserInfoResolver initialize(Properties properties) { return initialize(new UserInfoResolverConfig(properties)); }  static UserInfoResolver from(Map<String, String> parameters); void setUserInfoEndpoint(String userInfoEndpoint); UserInfoResolver initialize(Properties properties); UserInfoResolver initialize(); UserInfo resolve(AccessToken accessToken); @Override String toString();  }
@Test(expected = IllegalStateException.class) public void initialize_shouldFailWithoutEndpoint() throws Exception { UserInfoResolver userInfoResolver = new UserInfoResolver(); userInfoResolver.initialize(); }