@Test(expected = SocketTimeoutException.class)
public void requestTimeout() throws Exception {

    when(mHttpStack.performRequest(REQUEST, ADDITIONAL_HEADERS))
            .thenThrow(new ConnectTimeoutException());
    mAdaptedHttpStack.executeRequest(REQUEST, ADDITIONAL_HEADERS);
}