/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.apache.commons.compress.archivers;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;

import org.apache.commons.compress.archivers.TestArchiveStreamProvider.ArchiveInvocationConfirmationException;
import org.junit.jupiter.api.Test;

public class ArchiveServiceLoaderTest {

    @Test
    public void testInputStream() throws ArchiveException {
        ArchiveStreamFactory.DEFAULT.createArchiveInputStream("ArchiveTestInput1", new ByteArrayInputStream(new byte[] {}));
    }

    @Test
    public void testOutputStream() throws ArchiveException {
        ArchiveStreamFactory.DEFAULT.createArchiveOutputStream("ArchiveTestOutput1", new ByteArrayOutputStream());
    }

}

@@ -859,37 +859,46 @@
 ort 
-java.io.ByteArrayInputStream;
+static org.junit.Assert.assertThrows;%0A
 %0Aimp
@@ -910,35 +910,34 @@
 ava.io.ByteArray
-Out
+In
 putStream;%0A%0Aimpo
@@ -935,119 +935,46 @@
 am;%0A
-%0A
 import 
-org.apache.commons.compress.archivers.TestArchiveStreamProvider.ArchiveInvocationConfirmationException;
+java.io.ByteArrayOutputStream;%0A
 %0Aimp
@@ -1083,39 +1083,55 @@
 stInputStream() 
-t
+%7B%0A        assertT
 hrows
- 
+(
 ArchiveException
@@ -1126,34 +1126,49 @@
 iveException
- %7B%0A
+.class,%0A      
       
- 
+() -%3E
  ArchiveStre
@@ -1271,16 +1271,17 @@
 e%5B%5D %7B%7D))
+)
 ;%0A    %7D%0A
@@ -1359,16 +1359,59 @@
 %0A       
+ assertThrows(ArchiveException.class, () -%3E
  Archive
@@ -1508,16 +1508,17 @@
 tream())
+)
 ;%0A    %7D%0A

Fix broken tests.