### Question:
TppRedirectUriMapper { public @Nullable TppRedirectUri mapToTppRedirectUri(@Nullable String redirectUri, @Nullable String nokRedirectUri) { return Optional.ofNullable(redirectUri) .map(redirect -> new TppRedirectUri(redirect, nokRedirectUri)) .orElse(new TppRedirectUri("", "")); }  @Nullable TppRedirectUri mapToTppRedirectUri(@Nullable String redirectUri, @Nullable String nokRedirectUri);  }### Answer:
@Test void mapToTppRedirectUri_success() { TppRedirectUri tppRedirectUri = mapper.mapToTppRedirectUri("ok_url", "nok_url"); assertNotNull(tppRedirectUri); assertEquals("ok_url", tppRedirectUri.getUri()); assertEquals("nok_url", tppRedirectUri.getNokUri()); }
@Test void mapToTppRedirectUri_blankValues() { TppRedirectUri tppRedirectUri = mapper.mapToTppRedirectUri("", ""); assertNotNull(tppRedirectUri); assertEquals("", tppRedirectUri.getUri()); assertEquals("", tppRedirectUri.getNokUri()); }