assertBackgroundThread

Throws an java.lang.IllegalArgumentException if called on the main thread.