source: class AttributeValueExtractorTest {
  
      @Test
      public void checkExtractorAnnotated() {
  
target:         AnnotatedEntity entity = new AnnotatedEntity("idVal", 1, "123");
          List<AuthAttribute> attributes = extractAttributesFromResource(entity);
          Assert.assertEquals(2, attributes.size());
          AuthAttribute attr1 = attributes.get(0);
          AuthAttribute attr2 = attributes.get(1);
          Assert.assertEquals(true, attr1.getId().startsWith("ent."));
          Assert.assertEquals(true, attr2.getId().startsWith("ent."));
          if (attr1.getId().equals("ent.i")) {
              Assert.assertEquals(1, attr1.getValues().size());
              Assert.assertEquals("idVal", attr1.getValues().get(0));
  
              Assert.assertEquals(1, attr2.getValues().size());
              Assert.assertEquals("1", attr2.getValues().get(0));
          } else {
              Assert.assertEquals(1, attr2.getValues().size());
              Assert.assertEquals("idVal", attr2.getValues().get(0));
  
              Assert.assertEquals(1, attr1.getValues().size());
              Assert.assertEquals("1", attr1.getValues().get(0));
          }
      }
  
  }