reflection for assert statement