### Question:
ScannerImpl extends ScannerOptions implements Scanner { @Override public Authorizations getAuthorizations() { ensureOpen(); return authorizations; } ScannerImpl(ClientContext context, TableId tableId, Authorizations authorizations); @Override synchronized void setRange(Range range); @Override synchronized Range getRange(); @Override synchronized void setBatchSize(int size); @Override synchronized int getBatchSize(); @Override synchronized Iterator<Entry<Key,Value>> iterator(); @Override Authorizations getAuthorizations(); @Override synchronized void enableIsolation(); @Override synchronized void disableIsolation(); @Override synchronized void setReadaheadThreshold(long batches); @Override synchronized long getReadaheadThreshold(); @Override synchronized void close();  }### Answer:
@Test public void testGetAuthorizations() { Authorizations expected = new Authorizations("a,b"); Scanner s = new ScannerImpl(context, TableId.of("foo"), expected); assertEquals(expected, s.getAuthorizations()); s.close(); }