public static ICovarianceMatrix serializableInstance(){
  List<Node> variables=new ArrayList<>();
  Node x=new ContinuousVariable("X");
  variables.add(x);
  TetradMatrix matrix=TetradAlgebra.identity(1);
  return new CovarianceMatrix(variables,matrix,100);
}

public static ICovarianceMatrix serializableInstance ( ) { List < Node > variables = new ArrayList < > ( ) ; Node x = new ContinuousVariable ( "X" ) ; variables . add ( x ) ; TetradMatrix matrix = TetradAlgebra . identity ( 1 ) ; return new CovarianceMatrix ( variables , matrix , 100 ) ; }
generates a simple exemplar of this class to test serialization .
