These are some examples to show how ArchUnit can be used to encode and validate rules about best practices an architectural structures of you Java code.
You’ll find more information including the slides to the talk on my homepage: https://www.ahus1.de/post/archunit-entropy