Review the testing library

The Android for Cars androidx.car.app.testing library, which provides auxiliary classes that you can use to validate your app's performance in a test environment. For example, the SessionController lets you simulate a connection to the host and verify that the correct Screen and Template are created and returned.

To learn more, see car-samples.