Olha, eu acho o seguinte. Assertions começam desabilitadas, então o que voce pode fazer é habilitar elas. Então, é possivel HABILITAR assertions definindo por classes…
PS: Que mock é esse?
[]'s
Because assertions are disabled by default, using the disable switches might seem
unnecessary. Indeed, using the switches the way we do in the preceding example just
gives you the default behavior (in other words, you get the same result regardless
of whether you use the disabling switches). But?you can also selectively enable
and disable assertions in such a way that they’re enabled for some classes and/or
packages, and disabled for others, while a particular program is running.[/quote]