@Test
public void testParseValueFromFunction() throws Exception {

  assertEquals(MyAttributeValueString.class, parseValueFromFunction(stringEqualFunction, "hello")
      .getClass());
  assertEquals(MyAttributeValueDate.class, parseValueFromFunction(
      new URI("urn:oasis:names:tc:xacml:1.0:function:date-greater-than"), "2010-01-01")
      .getClass());
}