@Test
public void getAttrByIdReturnsPopulatedOptionalWhenAttrPresent() {

    // given
    given(attributesMock.get(ATTRIBUTE_ID)).willReturn(attributeMock);
    // when
    var actualAttrOptional = baseAttributeMapper.getAttributeById(attributesMock, ATTRIBUTE_ID);
    // then
    assertThat(actualAttrOptional)
            .isPresent()
            .contains(attributeMock);
}