@@ -0,0 +1,2261 @@
+package org.sagebionetworks.bridge.sdk.integration;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.sagebionetworks.bridge.rest.api.ForSuperadminsApi;%0Aimport org.sagebionetworks.bridge.rest.model.App;%0Aimport org.sagebionetworks.bridge.rest.model.VersionHolder;%0Aimport org.sagebionetworks.bridge.user.TestUserHelper;%0Aimport org.sagebionetworks.bridge.user.TestUserHelper.TestUser;%0Aimport org.sagebionetworks.bridge.util.IntegTestUtils;%0A%0Aimport static org.sagebionetworks.bridge.rest.model.Role.DEVELOPER;%0Aimport static org.sagebionetworks.bridge.rest.model.Role.RESEARCHER;%0Aimport static org.sagebionetworks.bridge.util.IntegTestUtils.TEST_APP_ID;%0A%0Apublic class ParticipantDataTest %7B%0A    private TestUser admin;%0A    private TestUser developer;%0A    private TestUser researcher;%0A    private TestUser phoneUser;%0A    private TestUser emailUser;%0A    private String externalId;%0A%0A    @Before%0A    public void before() throws Exception %7B%0A        admin = TestUserHelper.getSignedInAdmin();%0A        developer = TestUserHelper.createAndSignInUser(ParticipantDataTest.class, false, DEVELOPER);%0A        researcher = TestUserHelper.createAndSignInUser(ParticipantDataTest.class, true, RESEARCHER);%0A%0A        externalId = Tests.randomIdentifier(ParticipantDataTest.class);%0A%0A        IntegTestUtils.deletePhoneUser(); //TODO I don't understand why this line is here%0A%0A        ForSuperadminsApi superAdminApi = admin.getClient(ForSuperadminsApi.class);%0A        App app = superAdminApi.getApp(TEST_APP_ID).execute().body();%0A        if (!app.isPhoneSignInEnabled() %7C%7C !app.isEmailSignInEnabled()) %7B%0A            app.setPhoneSignInEnabled(true);%0A            app.setEmailSignInEnabled(true);%0A            VersionHolder keys = superAdminApi.updateApp(app.getIdentifier(), app).execute().body();%0A            app.version(keys.getVersion());%0A        %7D%0A    %7D%0A%0A    @After%0A    public void after() throws Exception %7B%0A        if (developer != null) %7B%0A            developer.signOutAndDeleteUser();%0A        %7D%0A        if (researcher != null) %7B%0A            researcher.signOutAndDeleteUser();%0A        %7D%0A        if (phoneUser != null) %7B%0A            phoneUser.signOutAndDeleteUser();%0A        %7D%0A        if (emailUser != null) %7B%0A            emailUser.signOutAndDeleteUser();%0A        %7D%0A    %7D%0A%0A%7D%0A

set up ParticipantDataTest