public void serialize()
    throws KettleException {
    String xml = MetaXmlSerializer.serialize(
      from( stepMetaInterface ) ); //.encryptedFields( encryptedFields ) );

    rep.saveStepAttribute( idTrans, idStep, REPO_TAG, xml );
  }
@Test
  public void testSerialize() throws KettleException {
    String serialized = serialize( from( stepMeta ) );

    RepoSerializer
      .builder()
      .repo( repo )
      .stepId( stepId )
      .transId( transId )
      .stepMeta( stepMeta )
      .serialize();

    verify( repo, times( 1 ) )
      .saveStepAttribute( transId, stepId, "step-xml", serialized );
  }