GroupVerifierChainLink extends DefaultVerifierChainLink<T> { @Override protected void verifyLink(final T resource) { sessionService.verifyGroup(resource.getCrtUserGroup()); }  void setSessionService(final SessionService sessionService);  }
@Test public void testVerifyLink() throws Exception { String crtUserGroup = "developers"; Department resource = new Department(); resource.setCrtUserGroup(crtUserGroup); unit.verify(resource); verify(nextVerifier).verify(any()); verify(sessionService).verifyGroup(crtUserGroup); }