// Path: jmock-imposters-tests/src/test/java/org/jmock/test/unit/lib/legacy/ImposteriserParameterResolver.java
// public class ImposteriserParameterResolver extends AbstractImposteriserParameterResolver {
// 
//     public ImposteriserParameterResolver() {
//         super(ByteBuddyClassImposteriser.INSTANCE,
//                 ClassImposteriser.INSTANCE,
//                 JavaReflectionImposteriser.INSTANCE);
//     }
// 
// }


import static org.hamcrest.Matchers.isEmptyOrNullString;
import static org.junit.Assert.assertThat;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.lang.ref.WeakReference;
import org.jmock.Mockery;
import org.jmock.api.Imposteriser;
import org.jmock.lib.concurrent.Synchroniser;
import org.jmock.test.unit.lib.legacy.CodeGeneratingImposteriserParameterResolver;
import org.jmock.test.unit.lib.legacy.ImposteriserParameterResolver;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ArgumentsSource;
        setThreadingPolicy(new Synchroniser());
    }};
    private final ErrorStream capturingErr = new ErrorStream();

    @BeforeAll
    public static void clearAnyOutstandingMessages() {
        ErrorStream localErr = new ErrorStream();
        localErr.install();
        String error = null;
        try {
            finalizeUntilMessageOrCount(localErr, FINALIZE_COUNT);
            error = localErr.output();
        } finally {
            localErr.uninstall();
        }
        if (error != null)
            System.err.println("WARNING - a previous test left output in finalization [" + error + "]");
    }

    @BeforeEach
    public void captureSysErr() {
        capturingErr.install();
    }

    @AfterEach
    public void replaceSysErr() {
        capturingErr.uninstall();
    }

    @ParameterizedTest
// Path: jmock-imposters-tests/src/test/java/org/jmock/test/unit/lib/legacy/ImposteriserParameterResolver.java
// public class ImposteriserParameterResolver extends AbstractImposteriserParameterResolver {
// 
//     public ImposteriserParameterResolver() {
//         super(ByteBuddyClassImposteriser.INSTANCE,
//                 ClassImposteriser.INSTANCE,
//                 JavaReflectionImposteriser.INSTANCE);
//     }
// 
// }


// Path: jmock-imposters-tests/src/test/java/org/jmock/test/acceptance/MockeryFinalizationAcceptanceTests.java
import static org.hamcrest.Matchers.isEmptyOrNullString;
import static org.junit.Assert.assertThat;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.lang.ref.WeakReference;
import org.jmock.Mockery;
import org.jmock.api.Imposteriser;
import org.jmock.lib.concurrent.Synchroniser;
import org.jmock.test.unit.lib.legacy.CodeGeneratingImposteriserParameterResolver;
import org.jmock.test.unit.lib.legacy.ImposteriserParameterResolver;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ArgumentsSource;

        setThreadingPolicy(new Synchroniser());
    }};
    private final ErrorStream capturingErr = new ErrorStream();

    @BeforeAll
    public static void clearAnyOutstandingMessages() {
        ErrorStream localErr = new ErrorStream();
        localErr.install();
        String error = null;
        try {
            finalizeUntilMessageOrCount(localErr, FINALIZE_COUNT);
            error = localErr.output();
        } finally {
            localErr.uninstall();
        }
        if (error != null)
            System.err.println("WARNING - a previous test left output in finalization [" + error + "]");
    }

    @BeforeEach
    public void captureSysErr() {
        capturingErr.install();
    }

    @AfterEach
    public void replaceSysErr() {
        capturingErr.uninstall();
    }

    @ParameterizedTest
    @ArgumentsSource(ImposteriserParameterResolver.class)