public static DataMap getAnnotationsMap(Annotation[] as)
  {
    return annotationsToData(as, true);
  }
@Test(description = "Unsafe call: RestSpecAnnotation annotation with short array member",
      expectedExceptions = NullPointerException.class)
  public void failsOnRestSpecAnnotationShortArrayMember()
  {
    @UnsupportedShortArray
    class LocalClass {
    }

    final Annotation[] annotations = LocalClass.class.getAnnotations();
    ResourceModelAnnotation.getAnnotationsMap(annotations);

    Assert.fail("Should fail throwing a NullPointerException");
  }