@Test
public void mustInstrumentClassesWithParams() throws Exception {

    Instrumentation inst = mock(Instrumentation.class);
    String agentArgs = "markerType=STDOUT,debugMode=true,autoSerializable=false";
    
    CoroutinesAgent.premain(agentArgs, inst);
    
    ArgumentCaptor<ClassFileTransformer> captor = ArgumentCaptor.forClass(ClassFileTransformer.class);
    verify(inst).addTransformer(captor.capture());
    
    byte[] inputContent = readZipFromResource("NormalInvokeTest.zip").get("NormalInvokeTest.class");
    
    ClassFileTransformer tranformer = captor.getValue();
    byte[] outputContent = tranformer.transform(
            getClass().getClassLoader(),
            "NormalInvokeTest",
            null,
            null,
            inputContent);
    
    assertTrue(outputContent.length > inputContent.length);
}