@@ -0,0 +1,889 @@
+package io.paymenthighway.model.request;%0A%0Aimport io.paymenthighway.json.JsonGenerator;%0Aimport org.junit.Test;%0A%0Aimport java.net.URI;%0Aimport java.net.URL;%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0Apublic class MobilePayInitRequestTest %7B%0A  @Test%0A  public void serializeUriAndUrls() throws Exception %7B%0A    MobilePayInitRequest request = MobilePayInitRequest.Builder(1000, %22EUR%22)%0A            .setWebhookSuccessUrl(new URL(%22https://myapp.server/success%22))%0A            .setWebhookCancelUrl(%22https://myapp.server/cancel%22)%0A            .setReturnUri(new URI(%22myapp://view%22))%0A            .build();%0A%0A    JsonGenerator jsonGenerator = new JsonGenerator();%0A    String json = jsonGenerator.createTransactionJson(request);%0A%0A    assertTrue(json.contains(%22https://myapp.server/success%22));%0A    assertTrue(json.contains(%22https://myapp.server/cancel%22));%0A    assertTrue(json.contains(%22myapp://view%22));%0A  %7D%0A%7D%0A

Test that URI and URLs are correctly included in json.