Fix warnings in p2.tests.

Useless throws and instanceof checks.

Change-Id: I104e88433c551512e68329b4648b8038d9ccd146
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2 files changed