test_class.declarator: rawImageData = intArrayToByteArray(new int[] {
              0xFF, 0xFF, 0xFF, 0xFF,
              0xFF, 0xFF, 0xFF, 0xFF,
              0xFF, 0xFF, 0xFF, 0xFF,
              0xFF, 0xFF, 0xFF, 0xFF
      })
test_class.original_string: byte[] rawImageData = intArrayToByteArray(new int[] {
              0xFF, 0xFF, 0xFF, 0xFF,
              0xFF, 0xFF, 0xFF, 0xFF,
              0xFF, 0xFF, 0xFF, 0xFF,
              0xFF, 0xFF, 0xFF, 0xFF
      });
test_class.type: byte[]
test_class.var_name: rawImageData
test_class.declarator: images = new ArrayList<>()
test_class.original_string: List<FirmwareImage> images = new ArrayList<>();
test_class.type: List<FirmwareImage>
test_class.var_name: images
test_class.declarator: imageA
test_class.original_string: FirmwareImage imageA;
test_class.type: FirmwareImage
test_class.var_name: imageA
test_class.declarator: imageB
test_class.original_string: FirmwareImage imageB;
test_class.type: FirmwareImage
test_class.var_name: imageB
test_class.declarator: bundle
test_class.original_string: FirmwareBundle bundle;
test_class.type: FirmwareBundle
test_class.var_name: bundle
test_class.file: sdk/src/test/java/com/punchthrough/bean/sdk/upload/FirmwareBundleTest.java
test_class.identifier: FirmwareBundleTest
test_case.body: @Test
      public void testFirmwareBundleGetNextImageManyImages() throws ImageParsingException, OADException {
          // Create a bundle with more than 1 image
          images.add(imageA);
          images.add(imageB);
          bundle = new FirmwareBundle(images);
  
          // Images shoute rotate each call
          assertThat(bundle.getNextImage()).isEqualTo(imageA);
          assertThat(bundle.getNextImage()).isEqualTo(imageB);
          try {
              bundle.getNextImage();
              fail("Expected OAD Exception");
          } catch (OADException e) {
              // good
          }
      }
test_case.class_method_signature: FirmwareBundleTest.testFirmwareBundleGetNextImageManyImages()
test_case.full_signature: @Test public void testFirmwareBundleGetNextImageManyImages()
test_case.identifier: testFirmwareBundleGetNextImageManyImages
test_case.invocations: add add isEqualTo assertThat getNextImage isEqualTo assertThat getNextImage getNextImage fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFirmwareBundleGetNextImageManyImages()
focal_class.declarator: images
focal_class.modifier: private
focal_class.original_string: private List<FirmwareImage> images;
focal_class.type: List<FirmwareImage>
focal_class.var_name: images
focal_class.declarator: imageCounter
focal_class.modifier: private
focal_class.original_string: private int imageCounter;
focal_class.type: int
focal_class.var_name: imageCounter
focal_class.file: sdk/src/main/java/com/punchthrough/bean/sdk/upload/FirmwareBundle.java
focal_class.identifier: FirmwareBundle
focal_class.class_method_signature: FirmwareBundle.FirmwareBundle(List<FirmwareImage> images)
focal_class.full_signature: public  FirmwareBundle(List<FirmwareImage> images)
focal_class.identifier: FirmwareBundle
focal_class.modifiers: public
focal_class.parameters: (List<FirmwareImage> images)
focal_class.signature:  FirmwareBundle(List<FirmwareImage> images)
focal_class.class_method_signature: FirmwareBundle.version()
focal_class.full_signature: public long version()
focal_class.identifier: version
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long version()
focal_class.class_method_signature: FirmwareBundle.getNextImage()
focal_class.full_signature: public FirmwareImage getNextImage()
focal_class.identifier: getNextImage
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: FirmwareImage
focal_class.signature: FirmwareImage getNextImage()
focal_class.class_method_signature: FirmwareBundle.reset()
focal_class.full_signature: public void reset()
focal_class.identifier: reset
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void reset()
focal_method.body: public FirmwareImage getNextImage() throws OADException {
          if (imageCounter >= images.size() ) {
              throw new OADException("Firmware bundle is exhausted, all images rejected");
          }
  
          FirmwareImage i = images.get(imageCounter);
          imageCounter++;
          return i;
      }
focal_method.class_method_signature: FirmwareBundle.getNextImage()
focal_method.full_signature: public FirmwareImage getNextImage()
focal_method.identifier: getNextImage
focal_method.invocations: size get
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: FirmwareImage
focal_method.signature: FirmwareImage getNextImage()