|
12 | 12 | import org.skyscreamer.jsonassert.JSONAssert; |
13 | 13 |
|
14 | 14 | import java.util.ArrayList; |
| 15 | +import java.util.Arrays; |
15 | 16 | import java.util.List; |
16 | 17 |
|
17 | 18 | import static java.net.HttpURLConnection.HTTP_OK; |
@@ -76,7 +77,8 @@ public void testCreateAccount() throws Exception { |
76 | 77 | " \"location\" : \"New London, NH\",\n" + |
77 | 78 | " \"referral_code\" : \"MIKEFRIENDS\",\n" + |
78 | 79 | " \"email_confirmed_status\" : \"$pending\",\n" + |
79 | | - " \"phone_confirmed_status\" : \"$pending\"\n" + |
| 80 | + " \"phone_confirmed_status\" : \"$pending\",\n" + |
| 81 | + " \"$account_types\" : [\"merchant\", \"premium\"]\n" + |
80 | 82 | "}"; |
81 | 83 |
|
82 | 84 | // Start a new mock server and enqueue a mock response. |
@@ -124,7 +126,9 @@ public void testCreateAccount() throws Exception { |
124 | 126 | .setCustomField("location", "New London, NH") |
125 | 127 | .setCustomField("referral_code", "MIKEFRIENDS") |
126 | 128 | .setCustomField("email_confirmed_status", "$pending") |
127 | | - .setCustomField("phone_confirmed_status", "$pending")); |
| 129 | + .setCustomField("phone_confirmed_status", "$pending") |
| 130 | + .setAccountTypes(Arrays.asList("merchant", "premium"))); |
| 131 | + |
128 | 132 | SiftResponse siftResponse = request.send(); |
129 | 133 |
|
130 | 134 | // Verify the request. |
|
0 commit comments