Use of gerrit_plugin and gerrit_plugin_tests rule from bazlets

Change-Id: I6fef3249e9fc7dce7dfb27b27e2b7bfd90ce088a
diff --git a/BUILD b/BUILD
index c6c0af4..5eb2c72 100644
--- a/BUILD
+++ b/BUILD
@@ -1,5 +1,5 @@
-load("//tools/bzl:junit.bzl", "junit_tests")
-load("//tools/bzl:plugin.bzl", "PLUGIN_DEPS", "PLUGIN_TEST_DEPS", "gerrit_plugin")
+
+load("@com_googlesource_gerrit_bazlets//:gerrit_plugin.bzl", "gerrit_plugin", "gerrit_plugin_tests")
 
 gerrit_plugin(
     name = "hooks",
@@ -11,11 +11,10 @@
     resources = glob(["src/main/resources/**/*"]),
 )
 
-junit_tests(
+gerrit_plugin_tests(
     name = "hooks_tests",
     srcs = glob(["src/test/java/**/*.java"]),
     tags = ["hooks"],
     visibility = ["//visibility:public"],
     runtime_deps = [":hooks__plugin"],
-    deps = PLUGIN_TEST_DEPS + PLUGIN_DEPS,
 )