@Test
public void testFunctionTrieVarargs() {
final FunctionTrie functionTrie = new FunctionTrie();
final SizzleFunction sizzleFunction = new SizzleFunction(new SizzleBool(),
new SizzleType[] { new SizzleString(), new SizzleVarargs(new SizzleString()) });
functionTrie.addFunction("function", sizzleFunction);
functionTrie.addFunction("function", new SizzleFunction(new SizzleBool(), new SizzleType[] { new SizzleString(), new SizzleVarargs(new SizzleInt()) }));
Assert.assertEquals("did not return correct function", sizzleFunction,
functionTrie.getFunction("function", new SizzleType[] { new SizzleString(), new SizzleString(), new SizzleString(), new SizzleString() }));
}