With intellij you can use Exclude classes and packages option in Run configuration -> modify options.