@Test
public void thatAuthenticationExceptionIsThrown() throws IOException {

    enqueueServerError(mMockServer,401);
    HaloNetworkApi networkApi = givenAHaloNetWorkApi(mFramework,mEndpointURL);
    HaloRequest request = givenAGetRequest(networkApi);
    HaloNetworkExceptionResolver haloNetworkExceptionResolver = new HaloNetworkExceptionResolver();
    try{
        haloNetworkExceptionResolver.resolve(request.execute());
    }
    catch (HaloAuthenticationException haloAuthenticationException){
        assertThat(haloAuthenticationException).isNotNull();
        assertThat(haloAuthenticationException.getMessage()).contains("401");
    }
}