### Question:
PolicyManager implements SwitchListener, EndpointListener, ClusteredDataTreeChangeListener<ResolvedPolicy>, Closeable { public TableId verifyMaxTableId(short tableOffset) { return new TableId((short) (tableOffset + TABLEID_EXTERNAL_MAPPER)); } PolicyManager(DataBroker dataBroker, SwitchManager switchManager, EndpointManager endpointManager,
            ScheduledExecutorService executor, short tableOffset); ListenableFuture<Void> changeOpenFlowTableOffset(final short tableOffset); short getTABLEID_PORTSECURITY(); short getTABLEID_INGRESS_NAT(); short getTABLEID_SOURCE_MAPPER(); short getTABLEID_DESTINATION_MAPPER(); short getTABLEID_POLICY_ENFORCER(); short getTABLEID_EGRESS_NAT(); short getTABLEID_EXTERNAL_MAPPER(); short getTABLEID_SFC_EGRESS(); short getTABLEID_SFC_INGRESS(); TableId verifyMaxTableId(short tableOffset); @Override void switchReady(final NodeId nodeId); @Override void switchRemoved(NodeId sw); @Override void switchUpdated(NodeId sw); @Override void endpointUpdated(EpKey epKey); @Override void nodeEndpointUpdated(NodeId nodeId, EpKey epKey); @Override void groupEndpointUpdated(EgKey egKey, EpKey epKey); @Override void onDataTreeChanged(Collection<DataTreeModification<ResolvedPolicy>> changes); void setLearningMode(LearningMode learningMode); @Override void close();  }### Answer:
@Test public void verifyMaxTableIdTest() throws Exception { short tableOffset = 255 - TABLEID_EXTERNAL_MAPPER; assertEquals(255, manager.verifyMaxTableId(tableOffset).getValue().shortValue()); }
@Test(expected = IllegalArgumentException.class) public void verifyMaxTableIdTestInvalidTableOffset() throws Exception { short tableOffset = 255 - TABLEID_EXTERNAL_MAPPER + 1; assertEquals(255, manager.verifyMaxTableId(tableOffset).getValue().shortValue()); }