// Path: src/com/codeborne/security/mobileid/MobileIDSession.java
// public class MobileIDSession implements Serializable {
//     public final String firstName;
//     public final String lastName;
//     public final String personalCode;
//     public final String challenge;
//     public final int sessCode;
// 
//     public MobileIDSession(int sessCode, String challenge, String firstName, String lastName, String personalCode) {
//         this.firstName = firstName;
//         this.lastName = lastName;
//         this.personalCode = personalCode;
//         this.challenge = challenge;
//         this.sessCode = sessCode;
//     }
// 
//     public String getFullName() {
//         return firstName + "\u00A0" + lastName;
//     }
// 
//     @Override
//     public String toString() {
//         return sessCode + ":::" + challenge + ":::" + firstName + ":::" + lastName + ":::" + personalCode;
//     }
// 
//     public static MobileIDSession fromString(String serializedMobileIDSession) {
//         String[] tokens = serializedMobileIDSession.split(":::");
//         return new MobileIDSession(parseInt(tokens[0]), tokens[1], tokens[2], tokens[3], tokens[4]);
//     }
// }


import com.codeborne.security.mobileid.MobileIDSession;
import org.hamcrest.CoreMatchers;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
package com.codeborne.security.mobileid.test;



public class MobileIDAuthenticatorStubTest {
    private MobileIDAuthenticatorStub stub = new MobileIDAuthenticatorStub();

    @Test
    public void emulatesMobileIdSession_withConstantUserData_and_givenPhoneNumber() {
// Path: src/com/codeborne/security/mobileid/MobileIDSession.java
// public class MobileIDSession implements Serializable {
//     public final String firstName;
//     public final String lastName;
//     public final String personalCode;
//     public final String challenge;
//     public final int sessCode;
// 
//     public MobileIDSession(int sessCode, String challenge, String firstName, String lastName, String personalCode) {
//         this.firstName = firstName;
//         this.lastName = lastName;
//         this.personalCode = personalCode;
//         this.challenge = challenge;
//         this.sessCode = sessCode;
//     }
// 
//     public String getFullName() {
//         return firstName + "\u00A0" + lastName;
//     }
// 
//     @Override
//     public String toString() {
//         return sessCode + ":::" + challenge + ":::" + firstName + ":::" + lastName + ":::" + personalCode;
//     }
// 
//     public static MobileIDSession fromString(String serializedMobileIDSession) {
//         String[] tokens = serializedMobileIDSession.split(":::");
//         return new MobileIDSession(parseInt(tokens[0]), tokens[1], tokens[2], tokens[3], tokens[4]);
//     }
// }


// Path: test/com/codeborne/security/mobileid/test/MobileIDAuthenticatorStubTest.java
import com.codeborne.security.mobileid.MobileIDSession;
import org.hamcrest.CoreMatchers;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;

package com.codeborne.security.mobileid.test;



public class MobileIDAuthenticatorStubTest {
    private MobileIDAuthenticatorStub stub = new MobileIDAuthenticatorStub();

    @Test
    public void emulatesMobileIdSession_withConstantUserData_and_givenPhoneNumber() {
        MobileIDSession mobileIDSession = stub.startLogin(null, null, "+372516273849");