src/integrationtests/java/com/aws/iot/integrationtests/edgeconnectorforkvs/videorecorder/VideoRecorderNewRecorderAppPathTest.java [71:102]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            if (toEnable) {
                this.recorder.toggleAppDataCallback(true);
                this.recorder.toggleAppDataOutputStream(true);
            } else {
                this.recorder.toggleAppDataCallback(false);
                this.recorder.toggleAppDataOutputStream(false);
            }
        }
    }

    private void initByteArray(boolean toInit) throws IOException {
        if (toInit) {
            this.rec1ByteOut1 = new ByteArrayOutputStream();
            this.rec1ByteOut2 = new ByteArrayOutputStream();
            this.rec2ByteOut1 = new ByteArrayOutputStream();
            this.rec2ByteOut2 = new ByteArrayOutputStream();
        } else {
            if (this.rec1ByteOut1 != null) {
                this.rec1ByteOut1.close();
                this.rec1ByteOut1 = null;
            }
            if (this.rec1ByteOut2 != null) {
                this.rec1ByteOut2.close();
                this.rec1ByteOut2 = null;
            }
            if (this.rec2ByteOut1 != null) {
                this.rec2ByteOut1.close();
                this.rec2ByteOut1 = null;
            }
            if (this.rec2ByteOut2 != null) {
                this.rec2ByteOut2.close();
                this.rec2ByteOut2 = null;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/integrationtests/java/com/aws/iot/integrationtests/edgeconnectorforkvs/videorecorder/VideoRecorderToggleAppPathTest.java [85:116]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            if (toEnable) {
                this.recorder.toggleAppDataCallback(true);
                this.recorder.toggleAppDataOutputStream(true);
            } else {
                this.recorder.toggleAppDataCallback(false);
                this.recorder.toggleAppDataOutputStream(false);
            }
        }
    }

    private void initByteArray(boolean toInit) throws IOException {
        if (toInit) {
            this.rec1ByteOut1 = new ByteArrayOutputStream();
            this.rec1ByteOut2 = new ByteArrayOutputStream();
            this.rec2ByteOut1 = new ByteArrayOutputStream();
            this.rec2ByteOut2 = new ByteArrayOutputStream();
        } else {
            if (this.rec1ByteOut1 != null) {
                this.rec1ByteOut1.close();
                this.rec1ByteOut1 = null;
            }
            if (this.rec1ByteOut2 != null) {
                this.rec1ByteOut2.close();
                this.rec1ByteOut2 = null;
            }
            if (this.rec2ByteOut1 != null) {
                this.rec2ByteOut1.close();
                this.rec2ByteOut1 = null;
            }
            if (this.rec2ByteOut2 != null) {
                this.rec2ByteOut2.close();
                this.rec2ByteOut2 = null;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



