@Test
public void thatHaloServerExceptionIsThrown() throws IOException {

    enqueueServerError(mMockServer,500);
    HaloNetworkApi networkApi = givenAHaloNetWorkApi(mFramework,mEndpointURL);
    HaloRequest request = givenAGetRequest(networkApi);
    HaloNetworkExceptionResolver haloNetworkExceptionResolver = new HaloNetworkExceptionResolver();
    try{
        haloNetworkExceptionResolver.resolve(request.execute());
    }
    catch (HaloServerException haloServerException){
        assertThat(haloServerException).isNotNull();
        assertThat(haloServerException.getMessage()).contains("500");
        assertThat(haloServerException.getErrorCode()).isEqualTo(500);
        assertThat(haloServerException.toString()).contains("500");
        assertThat(haloServerException.getBody()).isEqualTo("");
    }
}