@Test
public void testSerializeErlangFunction() throws IOException
{
Function function = Function.newErlangFunction("mod", "fun");
PhaseFunction phaseFunction = new PhaseFunction(function, true);
jg.writeObject(phaseFunction);
assertEquals("{\"language\":\"erlang\",\"module\":\"mod\",\"function\":\"fun\",\"keep\":true}", out.toString());
}