@Test
public void checkExtractorImpl() {

    ImplementingEntity entity = new ImplementingEntity("idVal", 1);
    List<AuthAttribute> attributes = extractAttributesFromResource(entity);
    Assert.assertEquals(2, attributes.size());
    AuthAttribute attr1 = attributes.get(0);
    AuthAttribute attr2 = attributes.get(1);
    if (attr1.getId().equals("id")) {
        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));
    }
}