// Path: src/se/vidstige/jadb/AdbFilterOutputStream.java
// public class AdbFilterOutputStream extends LookBackFilteringOutputStream {
//     public AdbFilterOutputStream(OutputStream inner) {
//         super(inner, 1);
//     }
// 
//     @Override
//     public void write(int c) throws IOException {
//         if (!lookback().isEmpty()) {
//             Byte last = lookback().getFirst();
//             if (last != null && last == 0x0d && c == 0x0a) {
//                 unwrite();
//             }
//         }
//         super.write(c);
//     }
// }


import org.junit.Assert;
import org.junit.Test;
import se.vidstige.jadb.AdbFilterOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
package se.vidstige.jadb.test.unit;



public class AdbOutputStreamFixture {

    private byte[] passthrough(byte[] input) throws IOException {
        ByteArrayOutputStream output = new ByteArrayOutputStream();
// Path: src/se/vidstige/jadb/AdbFilterOutputStream.java
// public class AdbFilterOutputStream extends LookBackFilteringOutputStream {
//     public AdbFilterOutputStream(OutputStream inner) {
//         super(inner, 1);
//     }
// 
//     @Override
//     public void write(int c) throws IOException {
//         if (!lookback().isEmpty()) {
//             Byte last = lookback().getFirst();
//             if (last != null && last == 0x0d && c == 0x0a) {
//                 unwrite();
//             }
//         }
//         super.write(c);
//     }
// }


// Path: test/se/vidstige/jadb/test/unit/AdbOutputStreamFixture.java
import org.junit.Assert;
import org.junit.Test;
import se.vidstige.jadb.AdbFilterOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;

package se.vidstige.jadb.test.unit;



public class AdbOutputStreamFixture {

    private byte[] passthrough(byte[] input) throws IOException {
        ByteArrayOutputStream output = new ByteArrayOutputStream();
        try (OutputStream sut = new AdbFilterOutputStream(output)) {