@Test(expected=ExQueryException.class)
public void create_failsForNonRESTXQAnnotation() throws URISyntaxException, ExQueryException {
final QName badName = new QName("http://fake", "fake");
final Annotation mckAnnotation = mock(Annotation.class);
when(mckAnnotation.getName()).thenReturn(badName);
final Set<Annotation> annotations = new HashSet<Annotation>();
annotations.add(mckAnnotation);
ResourceFunctionFactory.create(new URI("/fake.xquery"), annotations);