I am an academic and was working for a consultancy in a managing position. I was the only woman there. Right before the qualification period for maternity was about to start I was told the business was downsizing (even though we were making increasing profits) and that my job would be taken over by the CEO. One month after the I left they hired someone to replace me.