This is the code to match the blog post here http://blog.blundellapps.co.uk/testing-android-things-iot-meets-java
This tutorial will show you how you can architect your Android Things applications to make testing much easier. This involves two types of testing: unit and vendor testing.