@Test
public void getEffectiveRpId() {

    RpIdProviderImpl rpIdProvider = new RpIdProviderImpl();
    MockHttpServletRequest httpServletRequest = new MockHttpServletRequest();
    httpServletRequest.setScheme("https");
    httpServletRequest.setServerName("example.com");
    httpServletRequest.setServerPort(8080);
    assertThat(rpIdProvider.provide(httpServletRequest)).isEqualTo("example.com");
}