Assert exception is thrown.