I have a lot of Java Maven projects that use a bunch of imports of different methods, etc., from third-party dependencies.
What is the best way to make sure that after upgrading to new versions of third-party dependencies, everything that was imported from them works exactly the same as with the old versions?