<NME> ProgressInputStreamTest.java
<BEF> package cgeo.geocaching.files;

import org.apache.commons.io.IOUtils;
import org.junit.Test;
import static org.assertj.core.api.Java6Assertions.assertThat;

public class ProgressInputStreamTest {

public class ProgressInputStreamTest extends TestCase {

    public static void testRead() throws Exception {
        ProgressInputStream stream = new ProgressInputStream(IOUtils.toInputStream("test"));
        assertThat(stream.getProgress()).isEqualTo(0);

        int bytesRead = 0;
            bytesRead++;
        }
        assertThat(bytesRead).isEqualTo(4);
        assertThat(stream.getProgress()).isEqualTo(4);
        IOUtils.closeQuietly(stream);
    }

}

<MSG> Do not use deprecated method (#5715)
<DFF> @@ -9,7 +9,7 @@ import junit.framework.TestCase;
 public class ProgressInputStreamTest extends TestCase {
 
     public static void testRead() throws Exception {
-        ProgressInputStream stream = new ProgressInputStream(IOUtils.toInputStream("test"));
+        ProgressInputStream stream = new ProgressInputStream(IOUtils.toInputStream("test", "UTF-8"));
         assertThat(stream.getProgress()).isEqualTo(0);
 
         int bytesRead = 0;

Do not use deprecated method (#5715)