@Test
public void testTagArrayGrowsWithTagValue() {

   AmqpTransferTagGenerator tagGen = new AmqpTransferTagGenerator(false);
   for (int i = 0; i < 512; ++i) {
      byte[] tag = tagGen.getNextTag();
      if (i < 256) {
         assertEquals(1, tag.length);
      } else {
         assertEquals(2, tag.length);
      }
   }
}