test_class.declarator: ID_ATTR_VALUE = "sAMAccountName"
test_class.modifier: private final
test_class.original_string: private final String ID_ATTR_VALUE = "sAMAccountName";
test_class.type: String
test_class.var_name: ID_ATTR_VALUE
test_class.declarator: mapper
test_class.modifier: private
test_class.original_string: private ThumbnailPhotoMapper mapper;
test_class.type: ThumbnailPhotoMapper
test_class.var_name: mapper
test_class.file: backend/project-board/src/test/java/de/adesso/projectboard/ad/service/mapper/ThumbnailPhotoMapperTest.java
test_class.identifier: ThumbnailPhotoMapperTest
test_case.body: @Test
      public void mapFromAttributes() throws NamingException {
          // given
          var expectedId = "user-id";
          var expectedThumbnailPhoto = new byte[] {-2, 10, 39, 32};
          var expectedEntry = Map.entry(expectedId, expectedThumbnailPhoto);
  
          var idAttr = new BasicAttribute(ID_ATTR_VALUE, expectedId);
          var thumbnailPhotoAttr = new BasicAttribute("thumbnailPhoto", expectedThumbnailPhoto);
  
          var attributes = new BasicAttributes();
          attributes.put(idAttr);
          attributes.put(thumbnailPhotoAttr);
  
          // when
          var actualEntry = mapper.mapFromAttributes(attributes);
  
          // then
          assertThat(actualEntry).isEqualTo(expectedEntry);
      }
test_case.class_method_signature: ThumbnailPhotoMapperTest.mapFromAttributes()
test_case.full_signature: @Test public void mapFromAttributes()
test_case.identifier: mapFromAttributes
test_case.invocations: entry put put mapFromAttributes isEqualTo assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void mapFromAttributes()
focal_class.declarator: idAttribute
focal_class.modifier: private final
focal_class.original_string: private final String idAttribute;
focal_class.type: String
focal_class.var_name: idAttribute
focal_class.file: backend/project-board/src/main/java/de/adesso/projectboard/ad/service/mapper/ThumbnailPhotoMapper.java
focal_class.identifier: ThumbnailPhotoMapper
focal_class.class_method_signature: ThumbnailPhotoMapper.ThumbnailPhotoMapper(String idAttribute)
focal_class.full_signature: public  ThumbnailPhotoMapper(String idAttribute)
focal_class.identifier: ThumbnailPhotoMapper
focal_class.modifiers: public
focal_class.parameters: (String idAttribute)
focal_class.signature:  ThumbnailPhotoMapper(String idAttribute)
focal_class.class_method_signature: ThumbnailPhotoMapper.mapFromAttributes(Attributes attributes)
focal_class.full_signature: @Override public Map.Entry<String, byte[]> mapFromAttributes(Attributes attributes)
focal_class.identifier: mapFromAttributes
focal_class.modifiers: @Override public
focal_class.parameters: (Attributes attributes)
focal_class.return: Map.Entry<String, byte[]>
focal_class.signature: Map.Entry<String, byte[]> mapFromAttributes(Attributes attributes)
focal_class.superclass: extends BaseAttributeMapper<Map.Entry<String, byte[]>>
focal_method.body: @Override
      public Map.Entry<String, byte[]> mapFromAttributes(Attributes attributes) throws NamingException {
          var id = getSingleAttributeValue(attributes, idAttribute, String.class);
          var thumbnailPhoto = getSingleAttributeValue(attributes, "thumbnailPhoto", byte[].class);
  
          return Map.entry(id, thumbnailPhoto);
      }
focal_method.class_method_signature: ThumbnailPhotoMapper.mapFromAttributes(Attributes attributes)
focal_method.full_signature: @Override public Map.Entry<String, byte[]> mapFromAttributes(Attributes attributes)
focal_method.identifier: mapFromAttributes
focal_method.invocations: getSingleAttributeValue getSingleAttributeValue entry
focal_method.modifiers: @Override public
focal_method.parameters: (Attributes attributes)
focal_method.return: Map.Entry<String, byte[]>
focal_method.signature: Map.Entry<String, byte[]> mapFromAttributes(Attributes attributes)