public static DataMap getAnnotationsMap(Annotation[] as)
  {
    return annotationsToData(as, true);
  }
@Test(description = "Non-empty annotation, scalar members, overridden values: data map with annotation + members")
  public void succeedsOnSupportedScalarMembersWithOverriddenValues()
  {
    @SupportedScalarMembers(
        annotationMember = @Key(name = "id", type = String.class),
        booleanMember = !SupportedScalarMembers.DEFAULT_BOOLEAN_MEMBER,
        byteMember = SupportedScalarMembers.DEFAULT_BYTE_MEMBER + 1,
        classMember = Test.class,
        doubleMember = SupportedScalarMembers.DEFAULT_DOUBLE_MEMBER +0.5f,
        enumMember = TestEnum.GAMMA,
        floatMember = SupportedScalarMembers.DEFAULT_FLOAT_MEMBER -0.5f,
        intMember = SupportedScalarMembers.DEFAULT_INT_MEMBER - 1,
        longMember = SupportedScalarMembers.DEFAULT_LONG_MEMBER + 1,
        stringMember = SupportedScalarMembers.DEFAULT_STRING_MEMBER + "s"
    )
    class LocalClass {
    }

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

    Assert.assertNotNull(actual);
    Assert.assertTrue(actual.get(SUPPORTED_SCALAR_MEMBERS) instanceof DataMap);

    final DataMap dataMap = ((DataMap) actual.get(SUPPORTED_SCALAR_MEMBERS));

    Assert.assertEquals(dataMap.size(), 10);
    Assert.assertEquals(dataMap.get("annotationMember").getClass(), DataMap.class); // from AnnotationEntry#data
    Assert.assertEquals(dataMap.get("booleanMember").getClass(), Boolean.class);
    Assert.assertEquals(dataMap.get("byteMember").getClass(), ByteString.class); // byte string
    Assert.assertEquals(dataMap.get("classMember").getClass(), String.class); // canonical class name
    Assert.assertEquals(dataMap.get("doubleMember").getClass(), Double.class);
    Assert.assertEquals(dataMap.get("enumMember").getClass(), String.class); // enum name
    Assert.assertEquals(dataMap.get("floatMember").getClass(), Float.class);
    Assert.assertEquals(dataMap.get("intMember").getClass(), Integer.class);
    Assert.assertEquals(dataMap.get("longMember").getClass(), Long.class);
    Assert.assertEquals(dataMap.get("stringMember").getClass(), String.class);
  }