public static Map<String, Map<String, String>> loadAttributes( Node attributesNode ) {
    Map<String, Map<String, String>> attributesMap = new HashMap<>();

    if ( attributesNode != null ) {
      List<Node> groupNodes = XMLHandler.getNodes( attributesNode, XML_TAG_GROUP );
      for ( Node groupNode : groupNodes ) {
        String groupName = XMLHandler.getTagValue( groupNode, "name" );
        Map<String, String> attributes = new HashMap<>();
        attributesMap.put( groupName, attributes );
        List<Node> attributeNodes = XMLHandler.getNodes( groupNode, XML_TAG_ATTRIBUTE );
        for ( Node attributeNode : attributeNodes ) {
          String key = XMLHandler.getTagValue( attributeNode, "key" );
          String value = XMLHandler.getTagValue( attributeNode, "value" );
          if ( key != null && value != null ) {
            attributes.put( key, value );
          }
        }
      }
    }

    return attributesMap;
  }
@Test
  public void testLoadAttributes_NullParameter() {
    try ( MockedStatic<AttributesUtil> attributesUtilMockedStatic = mockStatic( AttributesUtil.class ) ) {
      attributesUtilMockedStatic.when( () -> AttributesUtil.loadAttributes( any( Node.class ) ) ).thenCallRealMethod();
      Map<String, Map<String, String>> attributesMap = AttributesUtil.loadAttributes( null );

      assertNotNull( attributesMap );
      assertTrue( attributesMap.isEmpty() );
    }
  }