Unit test helpers using reflection