Writer wr = new FileWriter(erlangFile);wr.write("-module(testFile).\n-behaviour(gen_server).\n");
wr.write("handle_call([67,1900,atom|junk],_,_)->{reply,ok,5};\n");
wr.write("handle_call([\"str\"],_,_)->{reply,ok,5};\n");
wr.write("handle_call("+256+",_,_)->{reply,ok,5}.\n");
wr.write(otherMethods);wr.close();
ErlangModule mod = ErlangModule.loadModule(ErlangModule.setupErlangConfiguration(new File(erlangFile)));
final Configuration config = Configuration.getDefaultConfiguration().copy();config.setErlangModuleName(mod.getName());config.setLabelKind(LABELKIND.LABEL_ERLANG);
createLabel("call, 256, ok",config);
createLabel("call, [\"rrr\"], ok",config);
createLabel("call, [atom,67,67,1900], ok",config); // proper list
checkFailureFor("call, 67, ok", config);