public static final void saveAttributesMap( DataNode dataNode, AttributesInterface attributesInterface )
    throws KettleException {
    saveAttributesMap( dataNode, attributesInterface, NODE_ATTRIBUTE_GROUPS );
  }
@Test
  public void testSaveAttributesMap_DefaultTag() throws Exception {
    try( MockedStatic<AttributesMapUtil> mockedAttributesMapUtil = mockStatic( AttributesMapUtil.class) ) {

      mockedAttributesMapUtil.when( () -> AttributesMapUtil.saveAttributesMap( any( DataNode.class ),
        any( AttributesInterface.class ) ) ).thenCallRealMethod();

      mockedAttributesMapUtil.when( () -> AttributesMapUtil.saveAttributesMap( any( DataNode.class ),
        any( AttributesInterface.class ), anyString() ) ).thenCallRealMethod();

      JobEntryCopy jobEntryCopy = new JobEntryCopy();
      jobEntryCopy.setAttributesMap( new HashMap<>() );
      jobEntryCopy.setAttributes( A_GROUP, new HashMap<>() );
      jobEntryCopy.setAttribute( A_GROUP, A_KEY, A_VALUE );

      DataNode dataNode = new DataNode( CNST_DUMMY );

      AttributesMapUtil.saveAttributesMap( dataNode, jobEntryCopy );

      assertNotNull( dataNode.getNode( AttributesMapUtil.NODE_ATTRIBUTE_GROUPS ) );
      assertNotNull( dataNode.getNode( AttributesMapUtil.NODE_ATTRIBUTE_GROUPS ).getNode( A_GROUP ) );
      assertNotNull(
        dataNode.getNode( AttributesMapUtil.NODE_ATTRIBUTE_GROUPS ).getNode( A_GROUP ).getProperty( A_KEY ) );
      assertEquals( A_VALUE,
        dataNode.getNode( AttributesMapUtil.NODE_ATTRIBUTE_GROUPS ).getNode( A_GROUP ).getProperty( A_KEY )
          .getString() );
    }
  }