Add new assertion for subcut DI toProvider.