Functions functions = (Functions) parse(OGC.FunctionsType);
assertEquals(2, functions.getFunctionNames().size());
}
public void testEncode() throws Exception {
Functions functions = FilterMockData.functions();
Document dom = encode(functions, new QName(OGC.NAMESPACE, "Functions"), OGC.FunctionsType);
assertEquals(1, dom.getElementsByTagNameNS(OGC.NAMESPACE, "Function_Names").getLength());
assertEquals(2, dom.getElementsByTagNameNS(OGC.NAMESPACE, "Function_Name").getLength());
}