@Test
public void registrationUrl_ShouldEncodeUrlParameters() {

    when(cryptoMock.getPublicKeyBase64Str()).thenReturn("my+publicKey");
    assertThat(UrlHelper.registrationUrl(context, null)).contains("public_key=my%2BpublicKey");
}