migrate to gerrit-plugin-api-2.6

Change-Id: Idb55d96eb0ccd39f644df5d187d73e27d54ee0f4
add unit test

Change-Id: I2515dfe3e4b428a1c5bf9754054c3e720f48ece0