@Test
public void testMismatchedTypes() throws Exception {

  List<MyAttributeValue> arguments = new ArrayList<MyAttributeValue>();
  arguments.clear();
  arguments.add(new MyAttributeValueString("hello", null));
  arguments.add(new MyAttributeValueUri("hello", null));
  try {
    evaulateFunction(stringEqualFunction, arguments);
    fail("Expected an exception");
  } catch (Exception ex) {
    // expected
    assertTrue(ex.getMessage().contains("Incorrect type of arguments"));
  }
}