@@ -0,0 +1,1961 @@
+package com.couchbase.lite;%0A%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.ExpectedException;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class AuthenticatorTest extends BaseTest %7B%0A%0A    @Rule%0A    public ExpectedException thrown = ExpectedException.none();%0A%0A    @Test%0A    public void testBasicAuthenticatorInstance() throws CouchbaseLiteException %7B%0A        String username = %22someUsername%22;%0A        String password = %22somePassword%22;%0A        BasicAuthenticator auth = new BasicAuthenticator(username, password);%0A        assertEquals(auth.getUsername(), username);%0A        assertEquals(auth.getPassword(), password);%0A    %7D%0A%0A    @Test%0A    public void testSessionAuthenticatorWithSessionID() throws CouchbaseLiteException %7B%0A        String sessionID = %22someSessionID%22;%0A        SessionAuthenticator auth = new SessionAuthenticator(sessionID);%0A        assertEquals(auth.getSessionID(), sessionID);%0A        assertEquals(auth.getCookieName(), %22SyncGatewaySession%22);%0A    %7D%0A%0A    @Test%0A    public void testSessionAuthenticatorWithSessionIDAndCookie() throws CouchbaseLiteException %7B%0A        String sessionID = %22someSessionID%22;%0A        String cookie = %22someCookie%22;%0A        SessionAuthenticator auth = new SessionAuthenticator(sessionID, cookie);%0A        assertEquals(auth.getSessionID(), sessionID);%0A        assertEquals(auth.getCookieName(), cookie);%0A    %7D%0A%0A    @Test%0A    public void testSessionAuthenticatorEmptySessionID() throws CouchbaseLiteException %7B%0A        thrown.expect(IllegalArgumentException.class);%0A        SessionAuthenticator auth = new SessionAuthenticator(null, null);%0A    %7D%0A%0A    @Test%0A    public void testSessionAuthenticatorEmptyCookie() throws CouchbaseLiteException %7B%0A        String sessionID = %22someSessionID%22;%0A        SessionAuthenticator auth = new SessionAuthenticator(sessionID, null);%0A        assertEquals(auth.getSessionID(), sessionID);%0A        assertEquals(auth.getCookieName(), %22SyncGatewaySession%22);%0A    %7D%0A%7D%0A

add authenticator test (#1855)