@@ -0,0 +1,1122 @@
+package umm3601.digitalDisplayGarden.Authentication;%0A%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport java.security.NoSuchAlgorithmException;%0A%0Aimport static java.lang.Thread.sleep;%0Aimport static org.junit.Assert.*;%0A%0Apublic class TestAuthorizedCookieBody %7B%0A%0A    Auth auth;%0A%0A    @Before%0A    public void setup() throws NoSuchAlgorithmException%7B%0A        auth = new Auth(%22fakeID%22, %22fakeSecret%22, %22callback%22);%0A    %7D%0A%0A    @Test%0A    public void testThatCookieBodyIsAuthorizable()%7B%0A        String cookieBody = auth.generateCookieBody(120);%0A        assertNotNull(cookieBody);%0A        assertNotEquals(%22%22,cookieBody);%0A%0A        boolean authorized = auth.authorized(cookieBody);%0A        assertTrue(authorized);%0A    %7D%0A%0A    @Test%0A    public void testThatCookieBodyIsExpired()%7B%0A        String cookieBody = auth.generateCookieBody(0);%0A        boolean authorized = auth.authorized(cookieBody);%0A        assertFalse(authorized);%0A    %7D%0A%0A    @Test%0A    public void testThatInvalidCookieBodyIsNotAuthorized()%7B%0A        boolean authorized = auth.authorized(%22SWvvnS4x1qPOQRUHbuX6s//TrXTk/ir74LDBp%22);%0A        assertFalse(authorized);%0A    %7D%0A%0A%7D%0A

Test generating a cookie body that can be authorized.