@@ -0,0 +1,1234 @@
+package com.udacity.gradle.builditbigger;%0A%0Aimport android.support.test.runner.AndroidJUnit4;%0Aimport android.util.Log;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0Aimport static junit.framework.Assert.assertNotNull;%0Aimport static junit.framework.Assert.assertTrue;%0A%0A/**%0A * Created by KarthicK on 12/4/2016.%0A */%0A%0A@RunWith(AndroidJUnit4.class)%0Apublic class EndpointsAsyncTaskTest%7B%0A%0A    private static final String LOG_TAG = EndpointsAsyncTaskTest.class.getSimpleName();%0A%0A    @Test%0A    public void testJoke()%7B%0A%0A        EndpointsAsyncTask.JokeCallBack jokeCallBack = new EndpointsAsyncTask.JokeCallBack()%7B%0A            @Override @Test%0A            public void processJoke(String joke) %7B%0A                assertNotNull(joke, %22joke returned is null%22);%0A                assertTrue(%22empty joke%22, jokeValid(joke));%0A            %7D%0A        %7D;%0A%0A        EndpointsAsyncTask asyncTask = new EndpointsAsyncTask(jokeCallBack);%0A        try%7B%0A            String joke = asyncTask.execute().get();%0A        %7D%0A        catch (Exception e)%7B%0A            Log.e(LOG_TAG, e.getMessage());%0A        %7D%0A    %7D%0A%0A    private static boolean jokeValid(String joke)%7B%0A        if(joke != null && !joke.equals(%22%22))%0A            return true;%0A        return false;%0A    %7D%0A%0A%7D

Test if joke returned is valid.