### Question:
QueueServiceImpl extends ServiceSupport implements QueueService { public Queue getQueue() { this.security.checkPermission(Hudson.ADMINISTER); return getHudson().getQueue(); } @Inject  QueueServiceImpl(final SecurityService securityService); Queue getQueue();  }### Answer:
@Test public void getQueueSecurity() { getInst().getQueue(); Mockito.verify(security).checkPermission(Hudson.ADMINISTER); }