package test;

import org.testng.ITestContext;
import org.testng.annotations.Test;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

public class SerializationTest {

  @Test(groups = "broken")
  public void iSuiteShouldBeSerializable(ITestContext context) throws IOException {
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    ObjectOutputStream oos = new ObjectOutputStream(out);
    oos.writeObject(context.getSuite());
    oos.close();
  }

  @Test(groups = "maven-broken")
  public void testngMethodShouldBeSerializable(ITestContext context) throws IOException {
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    ObjectOutputStream oos = new ObjectOutputStream(out);
    oos.writeObject(context.getAllTestMethods()[0]);
    oos.close();
  }
}

@@ -522,16 +522,28 @@
 groups =
+ %7B %22broken%22,
  %22maven-
@@ -545,24 +545,26 @@
 aven-broken%22
+ %7D
 )%0A  public v

Disable serialization test.