This is a unit test, and CustomHttpClient is completely synchronous. No sleep or waiting whit timeout should be necessary.