@@ -0,0 +1,1549 @@
+package com.microsoft.applicationinsights.library;%0A%0Aimport android.test.AndroidTestCase;%0Aimport com.microsoft.applicationinsights.contracts.User;%0Aimport junit.framework.Assert;%0A%0Apublic class TelemetryContextTests extends AndroidTestCase %7B%0A%0A    private TelemetryContext sut;%0A%0A    public void setUp() throws Exception %7B%0A        super.setUp();%0A        sut = new TelemetryContext(this.getContext(), %22ikey%22, null);%0A    %7D%0A%0A    public void testNewUserContext()%7B%0A%0A        // prepare%0A        String userId = %22userId%22;%0A%0A        // test%0A        User user = sut.getUser();%0A%0A        // validate%0A        Assert.assertNull(user.getAccountId());%0A        Assert.assertNull(user.getAccountAcquisitionDate());%0A        Assert.assertNotSame(userId, user.getId());%0A    %7D%0A%0A    public void testLoadOldUserContextIfNotSet()%7B%0A%0A        // prepare%0A        String accountId = %22accountId%22;%0A        String acquisitionDateString = %22acqusitionDate%22;%0A        String userId = %22userId%22;%0A%0A        // simulate existing user info%0A        sut.saveUserInfo(userId, acquisitionDateString, accountId);%0A%0A        // test%0A        sut = new TelemetryContext(this.getContext(), %22ikey%22, null);%0A%0A        // verify%0A        User loadedUser = sut.getUser();%0A        Assert.assertEquals(accountId, loadedUser.getAccountId());%0A        Assert.assertEquals(acquisitionDateString, loadedUser.getAccountAcquisitionDate());%0A        Assert.assertEquals(userId, loadedUser.getId());%0A    %7D%0A%0A    protected void tearDown ()%7B%0A%0A        // reset saved user context%0A        sut.saveUserInfo(null, null, null);%0A    %7D%0A%7D%0A

Add test cases