/** Test for method {@link NetvirtProvidersProvider#setTableOffset(short)} */
  @Test
  public void testSetTableOffset() {
    // verify a good value can be set
    short tableOffset = 0;
    NetvirtProvidersProvider netvirtProvidersProvider =
        new NetvirtProvidersProvider(null, null, tableOffset);

    tableOffset = 10;
    NetvirtProvidersProvider.setTableOffset(tableOffset);
    assertEquals("tableOffset was not set", tableOffset, NetvirtProvidersProvider.getTableOffset());
  }
  /** Negative test for method {@link NetvirtProvidersProvider#setTableOffset(short)} */
  @Test
  public void testTableOffsetNegative() {
    // verify an out of range value is not set
    short tableOffset = 0;
    NetvirtProvidersProvider netvirtProvidersProvider =
        new NetvirtProvidersProvider(null, null, tableOffset);

    short tableOffsetBad = (short) (256 - Service.L2_FORWARDING.getTable());
    NetvirtProvidersProvider.setTableOffset(tableOffsetBad);
    assertEquals("tableOffset should not be set", 0, NetvirtProvidersProvider.getTableOffset());
  }
 /** Test for {@link NetvirtProvidersProvider#getTableOffset()} */
 @Test
 public void testGetTableOffset() {
   short tableOffset = 10;
   NetvirtProvidersProvider netvirtProvidersProvider =
       new NetvirtProvidersProvider(null, null, tableOffset);
   assertEquals(
       "Table offset was not set", tableOffset, NetvirtProvidersProvider.getTableOffset());
 }