Developers writing automation that uses the Admin API will in many cases want to create a mock and configure that mock to return the value objects that is expected to be able to test other pieces of functionality in a controlled way.
However, since the constructors in the value objects that the various API endpoints return are either protected or the default access level, instantiating such value objects takes needs to use some convoluted trick to create instances (either mock them with a mocking framework, use reflection magic or create a helper method in the same package as they appear).
Please consider updating the constructor signatures and make them public and in doing so encourage good testing practices everywhere.
Here are some examples of classes affected by this:
- ...and so on