Merge "add junit for AuthenticationMethodFactory"